|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--gov.nist.antd.merlin.protocol.signaling.DynRecoveryHeader
This class represents the header for the DynRecovery protocol.
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
private int |
channelID
channel on which the filure occured |
private int |
currentSegInd
segment on which this DynRecovery was received |
static byte |
LOL_ADV
Message type : Loss of Light Advertisement. |
static byte |
OXC_DONE
Message type : OXC_DONE |
private int |
oxcDoneID
ID of the oxc who is sending |
private int |
routeID
route on which the failure occured |
private int |
segmentIndex
segment on which the filure occured |
static byte |
SET_PATH
Message type : SET_PATH |
static byte |
SET_PATH_ACK
Message type : SET_PATH_ACK |
static byte |
SET_PATH_DONE
Message type : SET_PATH_DONE |
private byte |
type
type of the message |
| Fields inherited from class SSF.OS.ProtocolMessage |
|
| Constructor Summary | |
DynRecoveryHeader(int routeId,
int channelId,
byte type,
int segmentIndex,
int currentSegInd,
int oxcDoneID)
Default constructor. |
|
| Method Summary | |
int |
bytecount()
Returns the total number of bytes in this packet (21 bytes). |
int |
getChannelID()
get the channel ID. |
int |
getCurrentSegInd()
get the currentSegInd. |
int |
getOxcDoneID()
get the oxcDoneID. |
int |
getRouteID()
get the route ID. |
int |
getSegmentIndex()
get the segment index. |
byte |
getType()
get the massage type. |
java.lang.String |
printType()
printType |
void |
setChannelID(int id)
set the channel ID. |
void |
setCurrentSegInd(int id)
set the currentSegInd. |
void |
setOxcDoneID(int id)
set the oxcDoneID |
void |
setRouteID(int id)
set the route ID. |
void |
setSegmentIndex(int id)
set the segment index. |
void |
setType(byte type)
set the type. |
java.lang.String |
toString()
Return a String that represent the message. |
| Methods inherited from class SSF.OS.ProtocolMessage |
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, header_bytecount, payload, previous, size, tobytes, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte LOL_ADV
public static final byte SET_PATH
public static final byte OXC_DONE
public static final byte SET_PATH_DONE
public static final byte SET_PATH_ACK
private byte type
private int routeID
private int channelID
private int segmentIndex
private int currentSegInd
private int oxcDoneID
| Constructor Detail |
public DynRecoveryHeader(int routeId,
int channelId,
byte type,
int segmentIndex,
int currentSegInd,
int oxcDoneID)
routeId - type The route on which the failure occured.channelId - type The channel on which the failure occured.type - The message type.oxcDoneID - The id of the sender.| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic int bytecount()
bytecount in class ProtocolMessagepublic void setRouteID(int id)
id - The route idpublic int getRouteID()
public void setChannelID(int id)
id - The channel idpublic int getChannelID()
public void setType(byte type)
type - The typepublic byte getType()
public void setSegmentIndex(int id)
id - The segment indexpublic int getSegmentIndex()
public void setCurrentSegInd(int id)
id - The currentSegIndpublic int getCurrentSegInd()
public void setOxcDoneID(int id)
id - The oxcDoneIDpublic int getOxcDoneID()
public java.lang.String printType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||