public class AdvanceReservationObject extends PCEPObject
From GEYSERS D4.1 Section 6.3.1.3 Advance Reservation
The path computation for an advance reservation is requested including a new object, called ADVANCE-RESERVATION, in the PCReq message. This object is optional and is used when the path computation must be performed for a time slot in the future. For unicast and anycast requests the object specifies the start-time and the duration of the service. In case of assisted unicast requests multiple pairs of such values can be provided and the path computation reply should return a quotation in terms of network cost for each time slot. Object-Class and Object-Type for the ADVANCE-RESERVATION object are to be defined. The P flag in the header must be set. The format of the object is the following, where: � Start time is a 32-bit unsigned number specifying the time when the resources reserved for the service have to be committed. � Duration is a 32-bit unsigned number specifying the service lifetime in units of seconds. 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Start time | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // ... // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Start time | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Duration | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ AR Object-Class is 16. AR Object-Type is 1.Modifier and Type | Class and Description |
---|---|
class |
AdvanceReservationObject.AdvanceReservation |
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
AdvanceReservationObject() |
AdvanceReservationObject(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
addAR(AdvanceReservationObject.AdvanceReservation arelem) |
void |
addARVector(Vector<AdvanceReservationObject.AdvanceReservation> arvec) |
void |
decode()
Decodes Advance Reservation Object
|
void |
encode()
Encode Advance Reservation Object
|
boolean |
equals(Object obj) |
LinkedList<AdvanceReservationObject.AdvanceReservation> |
getARList() |
int |
hashCode() |
void |
setARList(LinkedList<AdvanceReservationObject.AdvanceReservation> aRList) |
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 AdvanceReservationObject()
public AdvanceReservationObject(byte[] bytes, int offset) throws MalformedPCEPObjectException
MalformedPCEPObjectException
public void encode()
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
decode
in class PCEPObject
MalformedPCEPObjectException
public void addAR(AdvanceReservationObject.AdvanceReservation arelem)
public void addARVector(Vector<AdvanceReservationObject.AdvanceReservation> arvec)
public LinkedList<AdvanceReservationObject.AdvanceReservation> getARList()
public void setARList(LinkedList<AdvanceReservationObject.AdvanceReservation> aRList)
public int hashCode()
hashCode
in class PCEPObject
public boolean equals(Object obj)
equals
in class PCEPObject
Copyright © 2016. All rights reserved.