|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.NGNetwork.MessageVector
final class NGNetwork.MessageVector
Field Summary | |
---|---|
private int |
current
The actual item in this MessageVector object. |
private int |
elementCount
The number of valid components in this MessageVector object. |
private Message[] |
elementData
The array buffer into which the components of the vector are stored. |
Constructor Summary | |
---|---|
NGNetwork.MessageVector()
Constructs an empty vector with the specified initial capacity and capacity increment. |
Method Summary | |
---|---|
void |
addMessage(Message msg)
Adds the specified component to the end of this vector, increasing its size by one. |
Message |
nextMessage()
|
void |
removeCurrent()
|
Message |
removeMessage(int stamp)
Removes a message specified by its stamp. |
void |
reset()
|
int |
size()
Returns the number of message in this vector. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Message[] elementData
Any array elements following the last element in the Vector are null.
private int elementCount
private int current
Constructor Detail |
---|
public NGNetwork.MessageVector()
Method Detail |
---|
public Message nextMessage()
public int size()
public void reset()
public void addMessage(Message msg)
msg
- the component to be added.public void removeCurrent()
public Message removeMessage(int stamp)
stamp
- the stamp of the message to remove.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 |