|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.results.LinkStateResults
LinkStateResults is a class which shows how many incoming messages has been dropped by nodes and how many has been retransmitted towards its destination. It showns the expected number of hops for whatever message to reach its destination. Also classifies the messages according to type and mode of RouteMessageImpl.
Field Summary | |
protected static java.util.Hashtable |
flowOfMessages
|
protected static java.util.Hashtable |
hopsByTypeOf
LinkStateResults property: stores how many hops per RouteMessage's type and mode. |
Constructor Summary | |
LinkStateResults()
|
Method Summary | |
static double |
getMeanByTypeOf(java.lang.String typeOf,
java.lang.String modeOf)
Gets the average of hops for the Message Performative specified by " typeOf " and " modeOf ". |
static double |
getMeanByTypeOnly(java.lang.String typeOf)
Gets the average of hops for the Message Performative specified only by the type. |
static PatternStatus |
getStatisticsByTypeOf(java.lang.String typeOf,
java.lang.String modeOf)
Gets the PatternStatus of the Message Performative specified by "TypeOf" and "ModeOf". |
static PatternStatus |
getStatisticsByTypeOnly(java.lang.String typeOf)
Gets the PatternStatus of the Message Performative specified only by the type. |
static void |
newMessage(RouteMessage msg)
Stores a new RouteMessage has built up in order to be sent in a few steps. |
static void |
newMessageOnlyByType(RouteMessage msg)
Stores a new RouteMessage has built up in order to be sent in a few steps. |
static void |
printByNode()
Prints Link State Results per Node's flow. |
static void |
printByType()
Prints Link State Results per RouteMessage's type and node. |
static void |
resetLinkState()
Resets the LinkState results; |
static void |
updateDropped(Id node)
Stores the number of messages dropped by the node. |
static void |
updateHopsByTypeOf(RouteMessage msg)
Updates the number of hops per RouteMessage's type and mode. |
static void |
updateHopsByTypeOnly(RouteMessage msg)
Updates the number of hops per RouteMessage's type only. |
static void |
updateIncoming(Id node)
Stores the number of incoming messages received by the node. |
static void |
updateOutcoming(Id node)
Stores the number of outcoming messages sent by the node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable hopsByTypeOf
protected static java.util.Hashtable flowOfMessages
Constructor Detail |
public LinkStateResults()
Method Detail |
public static void resetLinkState()
public static void updateHopsByTypeOnly(RouteMessage msg)
msg
- The RouteMessage taken as input.public static void updateHopsByTypeOf(RouteMessage msg)
msg
- The RouteMessage taken as input.public static void newMessageOnlyByType(RouteMessage msg)
msg
- The RouteMessage taken as input.public static void newMessage(RouteMessage msg)
msg
- The RouteMessage taken as input.public static void updateIncoming(Id node)
node
- Node to overhear.public static void updateOutcoming(Id node)
node
- Node to overhear.public static void updateDropped(Id node)
node
- Node to overhear.public static double getMeanByTypeOf(java.lang.String typeOf, java.lang.String modeOf) throws NoSuchMessagePerformative
typeOf
- Type of the Message.modeOf
- Mode of the Message.
NoSuchMessagePerformative
- Whenever the Message Performative does not match
any Message.public static double getMeanByTypeOnly(java.lang.String typeOf) throws NoSuchMessagePerformative
typeOf
- Type of the Message.
NoSuchMessagePerformative
- Whenever the Message Performative does not match
any Message.public static PatternStatus getStatisticsByTypeOf(java.lang.String typeOf, java.lang.String modeOf) throws NoSuchMessagePerformative
typeOf
- Type of the Message.modeOf
- Mode of the Message.
NoSuchMessagePerformative
- Whenever the Message Performative does not match any Message.for more details.
public static PatternStatus getStatisticsByTypeOnly(java.lang.String typeOf) throws NoSuchMessagePerformative
typeOf
- Type of the Message.
NoSuchMessagePerformative
- Whenever the Message Performative does not match any Message.public static void printByType()
public static void printByNode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |