|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.symphony.messages.NeighbourMessagePool
The purpose of this pool is to save the memory used on the simulation, for the intensive communication with NeighbourMessages.
Field Summary | |
static int |
createdMessages
Number of created NeighbourMessages. |
static int |
freeMessages
Number of free NeighbourMessages. |
static int |
reusedMessages
Number of reused NeighbourMessages. |
Constructor Summary | |
NeighbourMessagePool()
|
Method Summary | |
static void |
freeMessage(NeighbourMessage msg)
Free the unused NeighbourMessage msg |
static NeighbourMessage |
getMessage()
Returns an existing NeighbourMessage if exists or a new NeighbourMessage. |
static NeighbourMessage |
getMessage(java.util.Collection value)
Returns an existing or a new NeighbourMessage with the specified internal value. |
static void |
init()
Initializes the pool of NeighbourMessages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int createdMessages
public static int reusedMessages
public static int freeMessages
Constructor Detail |
public NeighbourMessagePool()
Method Detail |
public static void init()
public static NeighbourMessage getMessage()
public static NeighbourMessage getMessage(java.util.Collection value)
value
- The internal value for the NeighbourMessage.
public static void freeMessage(NeighbourMessage msg)
msg
- An unused NeighbourMessage.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |