|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.sql.PduStream
@Entity public class PduStream
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.
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 |
---|
public PduStream()
Method Detail |
---|
public long getPk_PduStream()
public void setPk_PduStream(long pk_PduStream)
pk_PduStream
- the pk_PduStream to setpublic java.lang.String getExerciseName()
public void setExerciseName(java.lang.String exerciseName)
exerciseName
- the exerciseName to setpublic java.util.Date getWallClockStartTime()
public void setWallClockStartTime(java.util.Date wallClockStartTime)
wallClockStartTime
- the wallClockStartTime to setpublic java.util.Date getWallClockEndTime()
public void setWallClockEndTime(java.util.Date wallClockEndTime)
wallClockEndTime
- the wallClockEndTime to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |