edu.nps.moves.sql
Class PduStream

java.lang.Object
  extended by edu.nps.moves.sql.PduStream

@Entity
public class PduStream
extends java.lang.Object

Describes one stream of PDUs. If we're staving PDUs from the network into a database, one danger is that we put data from several exercises into a single table. There would be no way to tell which PDUs came from what exercise. (Theoretically the exerciseID could be used for this, but it wouldn't work well for various reasons.)

The PDU stream has an identifier which can be used as a foreign key in the PDU header, via a special, non-DIS addition to the PDU header that is not marshalled to IEEE packets. This ID refers to an entry in this table, which describes the name of the stream being recorded, the start time (in local wall clock time) and the end time (ditto). With this information you can extract all the PDUs related to the exercise from the table of PDUs, once you select the PDU stream from this table.

Author:
DMcG

Constructor Summary
PduStream()
           
 
Method Summary
 java.lang.String getExerciseName()
          Exercise name; this is what should be presented to the user
 long getPk_PduStream()
          Primary key of the table
 java.util.Date getWallClockEndTime()
          End time of the recording, in local wall clock time.
 java.util.Date getWallClockStartTime()
          Start time of the recording, in local wall clock time.
 void setExerciseName(java.lang.String exerciseName)
          Exercise name; this is what should be presented to the user
 void setPk_PduStream(long pk_PduStream)
          Primary key of the table
 void setWallClockEndTime(java.util.Date wallClockEndTime)
          End time of the recording, in local wall clock time.
 void setWallClockStartTime(java.util.Date wallClockStartTime)
          Start time of the recording, in local wall clock time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PduStream

public PduStream()
Method Detail

getPk_PduStream

public long getPk_PduStream()
Primary key of the table

Returns:
the pk_PduStream

setPk_PduStream

public void setPk_PduStream(long pk_PduStream)
Primary key of the table

Parameters:
pk_PduStream - the pk_PduStream to set

getExerciseName

public java.lang.String getExerciseName()
Exercise name; this is what should be presented to the user

Returns:
the exerciseName

setExerciseName

public void setExerciseName(java.lang.String exerciseName)
Exercise name; this is what should be presented to the user

Parameters:
exerciseName - the exerciseName to set

getWallClockStartTime

public java.util.Date getWallClockStartTime()
Start time of the recording, in local wall clock time.

Returns:
the wallClockStartTime

setWallClockStartTime

public void setWallClockStartTime(java.util.Date wallClockStartTime)
Start time of the recording, in local wall clock time.

Parameters:
wallClockStartTime - the wallClockStartTime to set

getWallClockEndTime

public java.util.Date getWallClockEndTime()
End time of the recording, in local wall clock time.

Returns:
the wallClockEndTime

setWallClockEndTime

public void setWallClockEndTime(java.util.Date wallClockEndTime)
End time of the recording, in local wall clock time.

Parameters:
wallClockEndTime - the wallClockEndTime to set