atropos.lp
Class AvnmpDriverRb

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

public class AvnmpDriverRb
extends AvnmpBase

Notify Driving Process of downstream 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 magician.Node.KUSmartPacketV2
CPU_Requirements, Destination_Address, halted, IO_BW_Requirements, Memory_Requirements, NextHop, PacketID, Source_Address, thisNode, TypeID
 
Constructor Summary
AvnmpDriverRb()
           
AvnmpDriverRb(java.lang.String dst, java.lang.String src, long rbtime)
          Create a new packet based on an input packet.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 void exec()
          This is the main processing for this active packet.
 boolean isAnti()
          Check if packet is an anti-message.
 boolean isAnti(AvnmpDriverRb ap)
          Determine whether the input packet is an anti-message of this message.
 boolean isEqual(AvnmpDriverRb 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.
 java.lang.String toString()
          Display the packet in human readable format.
 
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

AvnmpDriverRb

public AvnmpDriverRb()

AvnmpDriverRb

public AvnmpDriverRb(java.lang.String dst,
                     java.lang.String src,
                     long rbtime)
Create a new packet based on an input packet.
Method Detail

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.

isAnti

public boolean isAnti(AvnmpDriverRb 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(AvnmpDriverRb 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)

exec

public void exec()
This is the main processing for this active packet. The primary task is to add itself to the receiving node's input queue.
Overrides:
exec in class magician.Node.KUSmartPacketV2


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