planet.results
Class PatternStatus
java.lang.Object
planet.results.PatternStatus
- All Implemented Interfaces:
- java.io.Serializable
public class PatternStatus
- extends java.lang.Object
- implements java.io.Serializable
Statistic class pattern-oriented.
It stores the number of RouteMessages with type
and mode issued and the total number of hops to
reach its destination.
- Version:
- 1.0
- Author:
- Marc Sanchez
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternStatus
public PatternStatus(java.lang.String typeOf)
PatternStatus
public PatternStatus(java.lang.String typeOf,
java.lang.String modeOf)
updateHops
public void updateHops()
updateMessages
public void updateMessages()
getType
public java.lang.String getType()
- Returns:
- Returns the RouteMessage's type
getMode
public java.lang.String getMode()
- Returns:
- Returns the RouteMessage's mode
getHopsPerType
public int getHopsPerType()
- Returns:
- Returns the total number of hops per RouteMessage's type.
getMessagesPerType
public int getMessagesPerType()
- Returns:
- Returns the total number of messages per RouteMessage's type.