public class XifiUniCastEndPoints extends EndPoints
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
XifiUniCastEndPoints()
Constructs a new PCEP END-POINTS object IPv4 Type from scratch.
|
XifiUniCastEndPoints(byte[] bytes,
int offset)
Constructs a new PCEP END-POINTS object IPv4 Type from a sequence of bytes
|
Modifier and Type | Method and Description |
---|---|
void |
decode()
Decode the IPv4 address
|
void |
encode()
Encode the IPv4 address
|
int |
getDestination_port() |
String |
getDestinationMAC() |
int |
getSource_port() |
String |
getSourceMAC() |
String |
getSwitchDestinationID() |
String |
getSwitchSourceID() |
void |
setDestination_port(int destination_port) |
void |
setDestinationMAC(String destinationMAC) |
void |
setSource_port(int source_port) |
void |
setSourceMAC(String sourceMAC) |
void |
setSwitchDestinationID(String destMAC) |
void |
setSwitchSourceID(String sourceMAC) |
String |
toString() |
decode, decodeHeader, encode_header, equals, getBytes, getLength, getObject_bytes, getObjectClass, getObjectClass, getObjectLength, getObjectType, getOT, getRes, hashCode, isIbit, isPbit, setIbit, setObject_bytes, setObjectClass, setObjectLength, setOT, setPbit, setRes, supportedObject
public XifiUniCastEndPoints()
public XifiUniCastEndPoints(byte[] bytes, int offset) throws MalformedPCEPObjectException
bytes
- Sequence of bytes where the object is presentoffset
- Position at which the object startsMalformedPCEPObjectException
- Thrown if the decoded object is not well formedpublic void encode()
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
decode
in class PCEPObject
MalformedPCEPObjectException
public String getSwitchSourceID()
public void setSwitchSourceID(String sourceMAC)
public String getSwitchDestinationID()
public void setSwitchDestinationID(String destMAC)
public int getSource_port()
public void setSource_port(int source_port)
public int getDestination_port()
public void setDestination_port(int destination_port)
public String getSourceMAC()
public void setSourceMAC(String sourceMAC)
public String getDestinationMAC()
public void setDestinationMAC(String destinationMAC)
Copyright © 2016. All rights reserved.