|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.animation.TraceEvent
public class TraceEvent
This class provides a structure to store the discrete events parsed from the NS2 trace file.
Field Summary | |
---|---|
private double |
destinationAddress
Stores the destination address. |
private java.lang.String |
event
Stores the event type. |
private java.lang.String |
flags
Stores any event flags. |
private int |
flowId
Stores the flow identifier. |
private int |
fromNode
Stores the source node. |
private int |
packetSize
Stores the packet size. |
private java.lang.String |
packetType
Stores the packet type. |
private int |
seqNo
Stores the packet sequence number. |
private java.lang.String |
sName
Stores the s name. |
private double |
sourceAddress
Stores the source address. |
private double |
time
Stores the event type. |
private int |
toNode
Stores the destination node. |
private int |
uniqueId
Stores the unique id for the current event. |
Constructor Summary | |
---|---|
TraceEvent()
Default constructor. |
|
TraceEvent(java.lang.String event,
double time,
int fromNode,
int toNode,
java.lang.String packetType,
int packetSize,
java.lang.String flags,
int flowId,
int uniqueId,
double sourceAddress,
double destinationAddress,
int seqNo,
java.lang.String sName)
This constructor populates every field defined in the TraceEvent class. |
Method Summary | |
---|---|
double |
getDestinationAddress()
Get the address of the Destination Node. |
java.lang.String |
getEvent()
Get the Event Type as "h", "+", "-" or "r" |
java.lang.String |
getFlags()
Get the flags set on the Packet. |
int |
getFlowId()
Get the Flow ID. |
int |
getFromNode()
Get the Source Node of the Packet. |
int |
getPacketSize()
Get the Packet Size |
java.lang.String |
getPacketType()
Get the Packet Type |
int |
getSeqNo()
Get the Sequence Number |
java.lang.String |
getSName()
Get S-Name - Do not know what Sname is?? |
double |
getSourceAddress()
Get Source Node Address |
double |
getTime()
Get the Time of the Event. |
int |
getToNode()
Get the Destination Node Id |
int |
getUniqueId()
Get the Unique Id of the Packet. |
void |
setDestinationAddress(double destinationAddress)
Set the address of the Destination Node. |
void |
setEvent(java.lang.String event)
Set the Event Type as "h", "+", "-" or "r" |
void |
setFlags(java.lang.String flags)
Set the flags set on the Packet. |
void |
setFlowId(int flowId)
Set the Flow ID. |
void |
setFromNode(int fromNode)
Set the Source Node of the Packet. |
void |
setPacketSize(int packetSize)
Set the Packet Size |
void |
setPacketType(java.lang.String packetType)
Set the Packet Type |
void |
setSeqNo(int seqNo)
Set the Sequence Number |
void |
setSName(java.lang.String name)
Set S-Name - Do not know what Sname is?? |
void |
setSourceAddress(double sourceAddress)
Set Source Node Address |
void |
setTime(double time)
Set the Time of the Event. |
void |
setToNode(int toNode)
Set the Destination Node Id |
void |
setUniqueId(int uniqueId)
Set the Unique Id of the Packet. |
java.lang.String |
toString()
Returns a String representation of a TraceEvent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String event
private double time
private int fromNode
private int toNode
private java.lang.String packetType
private int packetSize
private java.lang.String flags
private int flowId
private int uniqueId
private double sourceAddress
private double destinationAddress
private int seqNo
private java.lang.String sName
Constructor Detail |
---|
public TraceEvent()
public TraceEvent(java.lang.String event, double time, int fromNode, int toNode, java.lang.String packetType, int packetSize, java.lang.String flags, int flowId, int uniqueId, double sourceAddress, double destinationAddress, int seqNo, java.lang.String sName)
event
- The event type.time
- The event time.fromNode
- The source node.toNode
- The destination node.packetType
- The packet type.packetSize
- The packet size.flags
- The event flags.flowId
- The flow identifier.uniqueId
- The event's unique identifier.sourceAddress
- The source address.destinationAddress
- The destination address.seqNo
- The sequence number.sName
- The s name.Method Detail |
---|
public double getDestinationAddress()
public void setDestinationAddress(double destinationAddress)
destinationAddress
- public java.lang.String getEvent()
public void setEvent(java.lang.String event)
Event
- typepublic java.lang.String getFlags()
public void setFlags(java.lang.String flags)
flags
- public int getFlowId()
public void setFlowId(int flowId)
flowId
- public int getUniqueId()
public void setUniqueId(int uniqueId)
uniqueId
- public int getFromNode()
public void setFromNode(int fromNode)
Source
- Node Idpublic int getPacketSize()
public void setPacketSize(int packetSize)
packetSize
- public java.lang.String getPacketType()
public void setPacketType(java.lang.String packetType)
packetType
- public int getSeqNo()
public void setSeqNo(int seqNo)
sequence
- numberpublic double getSourceAddress()
public void setSourceAddress(double sourceAddress)
Source
- Addresspublic double getTime()
public void setTime(double time)
Time
- public int getToNode()
public void setToNode(int toNode)
Node
- Idpublic java.lang.String getSName()
public void setSName(java.lang.String name)
S-Name
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |