public class ExcludeRouteObject extends PCEPObject
| Modifier and Type | Field and Description |
|---|---|
LinkedList<XROSubobject> |
XROSubobjectList
List of ERO subobjetcts
|
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res| Constructor and Description |
|---|
ExcludeRouteObject() |
ExcludeRouteObject(byte[] bytes,
int offset)
Constructs a new ERO (Explicit Route Object) from a sequence of bytes
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEROSubobjectList(LinkedList<XROSubobject> erosovec) |
void |
addXROSubobject(XROSubobject eroso) |
void |
decode()
Decode the object.
|
void |
encode()
Encode the object.
|
boolean |
equals(Object obj) |
LinkedList<XROSubobject> |
getXROSubobjectList() |
int |
hashCode() |
boolean |
isfail() |
void |
setFail(boolean fail) |
void |
setXROSubobjectList(LinkedList<XROSubobject> 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, supportedObjectpublic LinkedList<XROSubobject> XROSubobjectList
public ExcludeRouteObject()
public ExcludeRouteObject(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()
PCEPObjectencode in interface PCEPElementencode in class PCEPObjectpublic void decode()
throws MalformedPCEPObjectException
PCEPObjectdecode in class PCEPObjectMalformedPCEPObjectExceptionpublic void addXROSubobject(XROSubobject eroso)
public void addEROSubobjectList(LinkedList<XROSubobject> erosovec)
public LinkedList<XROSubobject> getXROSubobjectList()
public void setXROSubobjectList(LinkedList<XROSubobject> eROSubobjectList)
public int hashCode()
hashCode in class PCEPObjectpublic boolean equals(Object obj)
equals in class PCEPObjectpublic boolean isfail()
public void setFail(boolean fail)
Copyright © 2016. All rights reserved.