public class ExplicitRouteObject extends PCEPObject
Modifier and Type | Field and Description |
---|---|
LinkedList<EROSubobject> |
EROSubobjectList |
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
ExplicitRouteObject() |
ExplicitRouteObject(byte[] bytes,
int offset)
Constructs a new ERO (Explicit Route Object) from a sequence of bytes
|
Modifier and Type | Method and Description |
---|---|
void |
addEROSubobject(EROSubobject eroso) |
void |
addEROSubobjectList(LinkedList<EROSubobject> erosovec) |
void |
decode()
Decodes Explicit Route Object
|
void |
encode()
Encode Explicit Route Object
|
boolean |
equals(Object obj) |
LinkedList<EROSubobject> |
getEROSubobjectList() |
int |
hashCode() |
void |
setEROSubobjectList(LinkedList<EROSubobject> eROSubobjectList) |
String |
toString() |
decode, decodeHeader, encode_header, getBytes, getLength, getObject_bytes, getObjectClass, getObjectClass, getObjectLength, getObjectType, getOT, getRes, isIbit, isPbit, setIbit, setObject_bytes, setObjectClass, setObjectLength, setOT, setPbit, setRes, supportedObject
public LinkedList<EROSubobject> EROSubobjectList
public ExplicitRouteObject()
public ExplicitRouteObject(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 void addEROSubobject(EROSubobject eroso)
public void addEROSubobjectList(LinkedList<EROSubobject> erosovec)
public LinkedList<EROSubobject> getEROSubobjectList()
public void setEROSubobjectList(LinkedList<EROSubobject> eROSubobjectList)
public int hashCode()
hashCode
in class PCEPObject
public boolean equals(Object obj)
equals
in class PCEPObject
Copyright © 2016. All rights reserved.