|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsimulator.VSSimulatorVisualization.VSMessageLine
public class VSSimulatorVisualization.VSMessageLine
The class VSMessageLine, an object of this class represents a message line drawn into the painting area.
| Constructor Summary | |
|---|---|
VSSimulatorVisualization.VSMessageLine(VSInternalProcess receiverProcess,
long sendTime,
long recvTime,
long outageTime,
int senderNum,
int receiverNum,
VSTask task)
Instantiates a new VSMessageLine object. |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D g,
long globalTime)
Draws the message line. |
boolean |
equals(VSSimulatorVisualization.VSMessageLine line)
Checks one line to another if they equal (have the same message line id) |
long |
getMessageLineNum()
Gets the message line num. |
VSTask |
getTask()
Gets the task. |
void |
recalcOnChange()
Recalc on change. |
boolean |
removedAProcessAtIndex(int index)
Called if a process within the simulator has been removed at a specified index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VSSimulatorVisualization.VSMessageLine(VSInternalProcess receiverProcess,
long sendTime,
long recvTime,
long outageTime,
int senderNum,
int receiverNum,
VSTask task)
receiverProcess - the receiver processsendTime - the send timerecvTime - the recv timeoutageTime - the outage timesenderNum - the sender numreceiverNum - the receiver numtask - the task| Method Detail |
|---|
public void recalcOnChange()
public void draw(java.awt.Graphics2D g,
long globalTime)
g - the grpahics object to draw atglobalTime - the global timepublic boolean removedAProcessAtIndex(int index)
index - the index
public long getMessageLineNum()
public boolean equals(VSSimulatorVisualization.VSMessageLine line)
line - the line to compare against
public VSTask getTask()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||