|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.net.traffic.TrafficComponent
Defines the base class for generating/regulating/outputing packets
according to the associated traffic model.
One may further encapsulate the generated/regulated packets in a packet wrapper
by installing a packet wrapper using setPacketWrapper(drcl.net.PacketWrapper).
TrafficModel,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
protected Port |
downPort
|
protected Port |
timerPort
|
| Constructor Summary | |
TrafficComponent()
|
|
TrafficComponent(java.lang.String id_)
|
|
| Method Summary | |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
PacketWrapper |
getPacketWrapper()
Returns the installed packet wrapper. |
abstract TrafficModel |
getTrafficModel()
Returns the associated traffic model. |
java.lang.String |
info()
Returns information regarding this component. |
java.lang.String |
info(java.lang.String prefix_)
|
void |
setPacketWrapper(PacketWrapper pkt_)
Installs a packet wrapper to this traffic component. |
abstract void |
setTrafficModel(TrafficModel traffic_)
Sets the associated traffic model. |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Port downPort
protected Port timerPort
| Constructor Detail |
public TrafficComponent()
public TrafficComponent(java.lang.String id_)
| Method Detail |
public void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Componentpublic java.lang.String info()
Component
info in class Componentpublic java.lang.String info(java.lang.String prefix_)
public abstract TrafficModel getTrafficModel()
public abstract void setTrafficModel(TrafficModel traffic_)
public void setPacketWrapper(PacketWrapper pkt_)
public PacketWrapper getPacketWrapper()
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||