public class ObjectiveFunction extends PCEPObject
Represents a PCEP Objective Function (OF) Object, as defined in RFC 5541
3.1. OF Object The PCEP OF (Objective Function) object is optional. It MAY be carried within a PCReq message so as to indicate the desired/required objective function to be applied by the PCE during path computation or within a PCRep message so as to indicate the objective function that was used by the PCE during path computation. The OF object format is compliant with the PCEP object format defined in [RFC5440]. The OF Object-Class is 21. The OF Object-Type is 1. The format of the OF object body is: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OF Code | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // Optional TLV(s) // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ OF Code (2 bytes): The identifier of the objective function. IANA manages the "PCE Objective Function" code point registry (see Section 6). Reserved (2 bytes): This field MUST be set to zero on transmission and MUST be ignored on receipt. Optional TLVs may be defined in the future so as to encode objective function parameters.TO BE IMPLEMENTED!!!!!!
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res| Constructor and Description |
|---|
ObjectiveFunction() |
ObjectiveFunction(byte[] bytes,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode()
Decode the object.
|
void |
encode()
Encode the object.
|
boolean |
equals(Object obj) |
int |
getOFcode() |
OF_LIST_TLV |
getOflist() |
int |
hashCode() |
void |
setOFcode(int oFcode) |
void |
setOflist(OF_LIST_TLV oflist) |
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 ObjectiveFunction()
public ObjectiveFunction(byte[] bytes,
int offset)
throws MalformedPCEPObjectException
MalformedPCEPObjectExceptionpublic void encode()
PCEPObjectencode in interface PCEPElementencode in class PCEPObjectpublic void decode()
throws MalformedPCEPObjectException
PCEPObjectdecode in class PCEPObjectMalformedPCEPObjectExceptionpublic void setOFcode(int oFcode)
public int getOFcode()
public OF_LIST_TLV getOflist()
public void setOflist(OF_LIST_TLV oflist)
public int hashCode()
hashCode in class PCEPObjectpublic boolean equals(Object obj)
equals in class PCEPObjectCopyright © 2016. All rights reserved.