public class RequestParameters extends PCEPObject
Represents a Request Parameters Object, as described in RFC 5440.
One propietary optional TLVs in current version
From RFC 5440, Section 7.4 RP Object
Modifier and Type | Field and Description |
---|---|
long |
requestID
Request-ID-number (32 bits): The Request-ID-number value combined
with the source IP address of the PCC and the PCE address uniquely
identify the path computation request context.
|
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
RequestParameters()
Use this constructor create new RequestParameters object from scratch
|
RequestParameters(byte[] bytes,
int offset)
Constructs a Request Parameters (RP) object from a sequence of bytes
|
Modifier and Type | Method and Description |
---|---|
void |
decode()
Decode Request Parameters Object
|
void |
encode()
Encode the object.
|
boolean |
equals(Object obj) |
MaxRequestTimeTLV |
getMaxRequestTimeTLV() |
PathSetupTLV |
getPathSetupTLV() |
int |
getPrio() |
long |
getRequestID() |
int |
hashCode() |
boolean |
isBidirect() |
boolean |
isEbit() |
boolean |
isFbit() |
boolean |
isLoose() |
boolean |
isNbit() |
boolean |
isReopt() |
boolean |
isRetry() |
boolean |
isSupplyOF() |
void |
setBidirect(boolean bidirect) |
void |
setEbit(boolean ebit) |
void |
setFbit(boolean fbit) |
void |
setLoose(boolean loose) |
void |
setMaxRequestTimeTLV(MaxRequestTimeTLV maxRequestTimeTLV) |
void |
setNbit(boolean nbit) |
void |
setPathSetupTLV(PathSetupTLV pathSetupTLV) |
void |
setPrio(int prio) |
void |
setReopt(boolean reopt) |
void |
setRequestID(long requestID) |
void |
setRetry(boolean retry) |
void |
setSupplyOF(boolean supplyOF) |
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 long requestID
public RequestParameters()
public RequestParameters(byte[] bytes, int offset) throws MalformedPCEPObjectException
bytes
- Sequence of bytes where the object is presentoffset
- Position at which the object startsMalformedPCEPObjectException
public void encode()
PCEPObject
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
decode
in class PCEPObject
MalformedPCEPObjectException
public boolean isReopt()
public void setReopt(boolean reopt)
public boolean isBidirect()
public void setBidirect(boolean bidirect)
public boolean isLoose()
public void setLoose(boolean loose)
public void setRequestID(long requestID)
public int getPrio()
public void setPrio(int prio)
public long getRequestID()
public boolean isFbit()
public void setFbit(boolean fbit)
public boolean isNbit()
public void setNbit(boolean nbit)
public boolean isEbit()
public void setEbit(boolean ebit)
public boolean isSupplyOF()
public void setSupplyOF(boolean supplyOF)
public boolean isRetry()
public void setRetry(boolean retry)
public MaxRequestTimeTLV getMaxRequestTimeTLV()
public PathSetupTLV getPathSetupTLV()
public void setPathSetupTLV(PathSetupTLV pathSetupTLV)
public void setMaxRequestTimeTLV(MaxRequestTimeTLV maxRequestTimeTLV)
public int hashCode()
hashCode
in class PCEPObject
public boolean equals(Object obj)
equals
in class PCEPObject
Copyright © 2016. All rights reserved.