|
||||||||||
| 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.discovery.NeighbourHeader
This class represents the header for the SimpleOpticalNeighbourDiscovery.
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 |
destNodeID
Destination node ID |
private int |
destPortID
Destination port ID |
static int |
IDRESP
static value for IDRESP |
static int |
IDSIG
static value for IDSIG |
private int |
srcNodeID
Source node ID |
private int |
srcPortID
Source port ID |
private int |
type
Type of the ControlProtocol header |
| Fields inherited from class SSF.OS.ProtocolMessage |
|
| Constructor Summary | |
NeighbourHeader(int type,
int srcNodeID,
int srcPortID,
int destNodeID,
int destPortID)
Default constructor |
|
| Method Summary | |
int |
bytecount()
Returns the total number of bytes in this packet (16 bytes). |
int |
getDestNodeID()
get the destination node ID. |
int |
getDestPortID()
get the destination port ID. |
int |
getSrcNodeID()
get the source node ID. |
int |
getSrcPortID()
get the source port ID. |
int |
getType()
get the message type. |
void |
setDestNodeID(int destNodeID)
set the destination node ID. |
void |
setDestPortID(int destPortID)
set the destination port ID. |
void |
setSrcNodeID(int srcNodeID)
set the source node ID. |
void |
setSrcPortID(int srcPortID)
set the source port ID. |
void |
setType(int type)
set the message 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 int IDSIG
public static final int IDRESP
private int type
private int srcNodeID
private int srcPortID
private int destNodeID
private int destPortID
| Constructor Detail |
public NeighbourHeader(int type,
int srcNodeID,
int srcPortID,
int destNodeID,
int destPortID)
type - The type of the messagesrcNodeID - The ID of the source node of the IDSIGsrcPortID - The fiber port ID of the source nodedestNodeID - The ID of the destination nodedestPortID - The fiber port ID of the destination node| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic int bytecount()
bytecount in class ProtocolMessagepublic int getType()
public void setType(int type)
type - The message type.public int getSrcNodeID()
public void setSrcNodeID(int srcNodeID)
srcNodeID - The source node ID.public int getSrcPortID()
public void setSrcPortID(int srcPortID)
srcPortID - The source port ID.public int getDestNodeID()
public void setDestNodeID(int destNodeID)
destNodeID - The destination node ID.public int getDestPortID()
public void setDestPortID(int destPortID)
destPortID - The destination port ID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||