|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.zcu.fav.kiv.jsim.hla.JSimHLARemoteHead
JSimHLARemoteHead represents HLA remote object for JSimHead. Instance of JSimHead with the same name must exist in another federate. All methods of this class have the same function as methods defined in JSimHead.
JSimHead| Field Summary | |
private java.lang.String |
myName
The name of the remote queue. |
private JSimHLASimulation |
myParent
The simulation in which the queue is placed. |
| Constructor Summary | |
JSimHLARemoteHead(java.lang.String name,
JSimHLASimulation parent)
Creates a new HLA remote head. |
|
| Method Summary | |
long |
cardinal()
Returns the number of links in the queue. |
boolean |
empty()
Tests whether the queue is empty. |
JSimLink |
first()
Returns the first link in the queue. |
double |
getLw()
Returns the mean length of the queue. |
java.lang.String |
getName()
Returns the queue's name. |
double |
getTw()
Returns the mean waiting time spent in the queue by all links already removed from the queue. |
double |
getTwForAllLinks()
Returns the mean waiting time spent in the queue by all links ever inserted to the queue. |
JSimLink |
last()
Returns the last link in the queue. |
void |
linkIntoRemoteHead(JSimLink link)
Inserts link into HLA remote queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final java.lang.String myName
private JSimHLASimulation myParent
| Constructor Detail |
public JSimHLARemoteHead(java.lang.String name,
JSimHLASimulation parent)
throws JSimInvalidParametersException
name - Name of the remote head.parent - Parent simulation.
JSimInvalidParametersException - This exception is thrown out
if no parent was specified.| Method Detail |
public java.lang.String getName()
public boolean empty()
empty in interface JSimHLAHeadpublic long cardinal()
cardinal in interface JSimHLAHeadpublic JSimLink first()
first in interface JSimHLAHeadpublic JSimLink last()
last in interface JSimHLAHeadpublic double getLw()
getLw in interface JSimHLAHeadpublic double getTw()
getTw in interface JSimHLAHeadpublic double getTwForAllLinks()
getTwForAllLinks in interface JSimHLAHead
public void linkIntoRemoteHead(JSimLink link)
throws JSimSecurityException
link - Link to be inserted into HLA remote queue.
JSimSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||