atropos.lp
Class AvnmpPacket

java.lang.Object
  |
  +--magician.Node.KUSmartPacketV2
        |
        +--atropos.lp.AvnmpBase
              |
              +--atropos.lp.AvnmpBW
                    |
                    +--atropos.lp.AvnmpPacket
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class AvnmpPacket
extends AvnmpBW
implements java.io.Serializable

I am a virtual message. Compare the actual and predicted values of the application being monitored for out-of-tolerance rollback. 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
 byte anti
          Anti-Message Toggle
static byte antiMessage
          Indentifies this as an anti message.
 java.lang.String Dst
          Destination Node
 java.lang.Object payload
          Payload The Payload object is expected to include a method to check the prediction accuracy.
static byte realMessage
          Indentifies this as a real message.
 long rec_tm
          Receive Time
 long snd_tm
          Send Time
 java.lang.String Src
          Source Node
static byte virtualMessage
          Indentifies this as a virtual message.
 
Fields inherited from class atropos.lp.AvnmpBW
context
 
Fields inherited from class magician.Node.KUSmartPacketV2
CPU_Requirements, Destination_Address, halted, IO_BW_Requirements, Memory_Requirements, NextHop, PacketID, Source_Address, thisNode, TypeID
 
Constructor Summary
AvnmpPacket()
          Create an empty packet
AvnmpPacket(AvnmpLP mylp)
          Create a dummy packet.
AvnmpPacket(AvnmpPacket p)
          Create a new packet based on an input packet.
AvnmpPacket(byte a, java.lang.String Source, long rt, long st, AvnmpLP mylp)
          Create a packet based on all parameters specified.
AvnmpPacket(byte a, java.lang.String Source, long rt, java.lang.String Destination, long st, java.lang.Object pl)
          Create a packet based on all parameters specified in detail.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean compPred()
          This is a stub which allows base performance to be tested without rollback or state checking overhead.
 boolean compPred(java.lang.String oid, AvnmpState st, AvnmpPacket sqp, AvnmpLP mylp)
          Compute the prediction accuracy of AVNMP based on either state or the packet in the send queue cached closest to the current time.
 boolean equals(java.lang.Object obj)
           
 boolean isAnti()
          Check if packet is an anti-message.
 boolean isAnti(AvnmpPacket ap)
          Determine whether the input packet is an anti-message of this message.
 boolean isEqual(AvnmpPacket ap)
          Check if packets are equal.
 boolean isGvtReportInput()
          Check if packet is a Gvt calculation report packet.
 boolean isGvtUpdateRequest()
          Check if packet is a Gvt start calculation packet.
 boolean isGvtUpdateResponse()
          Check if packet is a Gvt response calculation packet.
 boolean isReal()
          Determine whether this message is real.
 boolean isVirtual()
          Determine whether this message is real or virtual.
 boolean isVirtual(AvnmpLP mylp, AvnmpTime st)
          Determine whether this message is real or virtual.
 java.lang.String toString()
          Display the packet in human readable format.
 
Methods inherited from class atropos.lp.AvnmpBW
exec, queueSize, recvRate, xmitRate
 
Methods inherited from class magician.Node.KUSmartPacketV2
AcquireSmallState, build, CreateSmallState, describeComponents, DestroySmallState, GetCanonicalAddress, getExecTime, GetLinkLayerAddress, GetNetName, GetNextHop, GetNodeName, GetNumberOfHops, GetService, GetSmallState, GetSmallState, getSourceAddress, getTypeId, halt, pathNotFound, run, SendForProcessing, SendSmartPacket, SendSmartPacket, SetSmallState, sleep, stop, yield
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

anti

public byte anti
Anti-Message Toggle

Src

public java.lang.String Src
Source Node

rec_tm

public long rec_tm
Receive Time

Dst

public java.lang.String Dst
Destination Node

snd_tm

public long snd_tm
Send Time

payload

public java.lang.Object payload
Payload The Payload object is expected to include a method to check the prediction accuracy. For now, the check is included as a method in this object.

antiMessage

public static final byte antiMessage
Indentifies this as an anti message.

realMessage

public static final byte realMessage
Indentifies this as a real message.

virtualMessage

public static final byte virtualMessage
Indentifies this as a virtual message.
Constructor Detail

AvnmpPacket

public AvnmpPacket()
Create an empty packet

AvnmpPacket

public AvnmpPacket(AvnmpPacket p)
Create a new packet based on an input packet.
Parameters:
p - Packet to duplicate.

AvnmpPacket

public AvnmpPacket(AvnmpLP mylp)
Create a dummy packet. The payload is set to carry the current transmit rate.

AvnmpPacket

public AvnmpPacket(byte a,
                   java.lang.String Source,
                   long rt,
                   java.lang.String Destination,
                   long st,
                   java.lang.Object pl)
Create a packet based on all parameters specified in detail.
Parameters:
a - Anti-toggle
Source - The packet source node
rt - The packet receive time
Destination - The packet destination node
st - The packet send time
pl - The packet payload.

AvnmpPacket

public AvnmpPacket(byte a,
                   java.lang.String Source,
                   long rt,
                   long st,
                   AvnmpLP mylp)
Create a packet based on all parameters specified. The payload is set the current transmit rate.
Parameters:
a - Anti-toggle
Source - The packet source node
rt - The packet receive time
Destination - The packet destination node
st - The packet send time
Method Detail

compPred

public boolean compPred()
                 throws ToleranceException
This is a stub which allows base performance to be tested without rollback or state checking overhead.

compPred

public boolean compPred(java.lang.String oid,
                        AvnmpState st,
                        AvnmpPacket sqp,
                        AvnmpLP mylp)
                 throws ToleranceException
Compute the prediction accuracy of AVNMP based on either state or the packet in the send queue cached closest to the current time.
Parameters:
oid - The object identifier of the actual application value.
st - The closest cached state. Can be null if no state available.
sqp - The closest cached send queue packet. Can be null if no packet available.
mylp - This logical process.

toString

public java.lang.String toString()
Display the packet in human readable format.
Overrides:
toString in class java.lang.Object
Returns:
The contents of the packet.

isVirtual

public boolean isVirtual()
Determine whether this message is real or virtual.
Returns:
true if the message is virtual, false if the message is real.

isReal

public boolean isReal()
Determine whether this message is real.
Returns:
true if the message is real, false if the message is virtual.

isVirtual

public boolean isVirtual(AvnmpLP mylp,
                         AvnmpTime st)
Determine whether this message is real or virtual.
Returns:
true if the message is virtual, false if the message is real.

isAnti

public boolean isAnti(AvnmpPacket ap)
Determine whether the input packet is an anti-message of this message.
Parameters:
ap - A packet containing a possible anti-message of the current message.
Returns:
true if the input packet is an anti-message of this packet.

isEqual

public boolean isEqual(AvnmpPacket ap)
Check if packets are equal. Equality does not include the anti-message toggle or the packet contents.
Parameters:
ap - The packet which is checked for equality with this packet.
Returns:
true if this packet and the input packet are equal, false otherwise.

isGvtUpdateRequest

public boolean isGvtUpdateRequest()
Check if packet is a Gvt start calculation packet.
Returns:
true if this packet is a GVT calculation start packet, false otherwise.

isGvtUpdateResponse

public boolean isGvtUpdateResponse()
Check if packet is a Gvt response calculation packet.
Returns:
true if this packet is a GVT calculation response packet, false otherwise.

isGvtReportInput

public boolean isGvtReportInput()
Check if packet is a Gvt calculation report packet.
Returns:
true if this packet is a GVT calculation report packet, false otherwise.

isAnti

public boolean isAnti()
Check if packet is an anti-message.
Returns:
true if this packet is an anti-message. false otherwise.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)


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