atropos.pp
Class PayLoad

java.lang.Object
  |
  +--atropos.pp.PayLoad
All Implemented Interfaces:
java.io.Serializable

public class PayLoad
extends java.lang.Object
implements java.io.Serializable

This class implements the payload passed to the Physical Process (PP).

This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.

Version:
$Revision: 1.1.1.1 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

Field Summary
 java.lang.String dst
          The destination load prediction.
 java.lang.String src
          The source of this load prediction message.
 long val_time
          The time at which the load above is predicted to be valid.
 
Constructor Summary
PayLoad(java.lang.Double v, java.lang.String s, AvnmpLP mylp)
          Create a PayLoad message.
 
Method Summary
 PayLoad join(java.util.Vector inComming, AvnmpLP mylp)
          Combine a vector of incomming packets with this packet into a single PayLoad.
 java.lang.String nextDst(java.lang.String cn, AvnmpLP mylp)
          Compute the next destination.
 java.lang.String split(java.lang.String cn, AvnmpLP mylp)
          Return the next hop node name based on the current node name, routing table and probability.
 java.lang.Double streptiChron()
          Actively compute the value, e.g.
 java.lang.String toString()
          Display this payload in a user friendly form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

val_time

public long val_time
The time at which the load above is predicted to be valid.

src

public java.lang.String src
The source of this load prediction message.

dst

public java.lang.String dst
The destination load prediction.
Constructor Detail

PayLoad

public PayLoad(java.lang.Double v,
               java.lang.String s,
               AvnmpLP mylp)
Create a PayLoad message. The message is actively source routed. The format of the routing is hard coded in the table below by the triplet: (source, dest, probability).
Parameters:
v - Predicted load.
s - Source node.
See Also:
splitTable.addEntry(java.lang.String, java.lang.String, java.lang.Double)
Method Detail

streptiChron

public java.lang.Double streptiChron()
Actively compute the value, e.g. Monte-Carlo simulation.
Returns:
The computed value.

nextDst

public java.lang.String nextDst(java.lang.String cn,
                                AvnmpLP mylp)
Compute the next destination.
Parameters:
cn - The current active node name.
Returns:
The name of the next active node.
See Also:
split(java.lang.String, atropos.lp.AvnmpLP)

toString

public java.lang.String toString()
Display this payload in a user friendly form.
Overrides:
toString in class java.lang.Object
Returns:
A user friendly form.

split

public java.lang.String split(java.lang.String cn,
                              AvnmpLP mylp)
Return the next hop node name based on the current node name, routing table and probability.
Returns:
Return the destination

join

public PayLoad join(java.util.Vector inComming,
                    AvnmpLP mylp)
Combine a vector of incomming packets with this packet into a single PayLoad. (Not implemented yet.)
Parameters:
inComming - Combine a vector of incomming packets with this packet into a single PayLoad.
Returns:
The combined output packet.


Copyright © 2002 GE Corporate Research and Development. All Rights Reserved.