planet.results
Class PatternStatus

java.lang.Object
  extended byplanet.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

Constructor Summary
PatternStatus(java.lang.String typeOf)
           
PatternStatus(java.lang.String typeOf, java.lang.String modeOf)
           
 
Method Summary
 int getHopsPerType()
           
 int getMessagesPerType()
           
 java.lang.String getMode()
           
 java.lang.String getType()
           
 void updateHops()
           
 void updateMessages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternStatus

public PatternStatus(java.lang.String typeOf)

PatternStatus

public PatternStatus(java.lang.String typeOf,
                     java.lang.String modeOf)
Method Detail

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.