|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNodeTraffic
abstract class NodeTraffic
The NodeTraffic abstract class defines the necessary methods for setting up traffic configuration for the generated messages.
Field Summary | |
---|---|
protected int |
address
Address of the node |
protected int |
nextMsgGenTime
It is an int type variable. |
Constructor Summary | |
---|---|
NodeTraffic(int nodeAddress)
Constructor of the NodeTraffic class |
Method Summary | |
---|---|
protected abstract Flit |
createDataFlit(int destination,
int vcId,
int curCycle)
Generates an encoded Data flit suitable for the NoC architecture. |
protected abstract Flit |
createHeaderFlit(int destination,
int noOfFlit,
int vcId,
int curCycle)
Generates an encoded Header flit suitable for the NoC architecture |
abstract java.util.Vector |
generateMessage(int curCycle,
int curMessageCount)
Generates a packet including its header flit and all of the data flits and stores into a Vector data structure. |
protected abstract int |
getDestination()
Determines a destination for the generated message. |
protected abstract int |
getMessageSize()
Determines the number of flits in the the generated message. |
protected abstract int |
getNextMsgGenTime()
Returns the next message generation time for the node. |
abstract void |
setNextMsgGenTime(int curCycle)
Updates the next message generation time (nextMessageGenTime) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int address
protected int nextMsgGenTime
Constructor Detail |
---|
public NodeTraffic(int nodeAddress)
nodeAddress
- address of the nodeMethod Detail |
---|
public abstract java.util.Vector generateMessage(int curCycle, int curMessageCount)
Generates a packet including its header flit and all of the data flits and stores into a Vector data structure. Also sets the next message generation time for the node.
curCycle
- simulation cyclecurMessageCount
- number of messages stored in the node's internal buffer
public abstract void setNextMsgGenTime(int curCycle)
curCycle
- simulation cycleprotected abstract int getNextMsgGenTime()
protected abstract int getDestination()
protected abstract int getMessageSize()
protected abstract Flit createHeaderFlit(int destination, int noOfFlit, int vcId, int curCycle)
destination
- address of the destination nodenoOfFlit
- number of flits in the messagevcId
- virtual channel numbercurCycle
- simualtion cycle
protected abstract Flit createDataFlit(int destination, int vcId, int curCycle)
destination
- address of the destination nodevcId
- virtual channel numbercurCycle
- simualatin cycle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |