public class Svec extends PCEPObject
Represents a SVEC Object as defined in RFC 5440
From RFC 5440, Section 7.13.2. SVEC Object
Section 7.13.1 details the circumstances under which it may be
desirable and/or required to synchronize a set of path computation
requests. The SVEC (Synchronization VECtor) object allows a PCC to
request the synchronization of a set of dependent or independent path
computation requests. The SVEC object is optional and may be carried
within a PCReq message.
The aim of the SVEC object carried within a PCReq message is to
request the synchronization of M path computation requests. The SVEC
object is a variable-length object that lists the set of M path
computation requests that must be synchronized. Each path
computation request is uniquely identified by the Request-ID-number
carried within the respective RP object. The SVEC object also
contains a set of flags that specify the synchronization type.
SVEC Object-Class is 11.
SVEC Object-Type is 1.
The format of the SVEC object body is as follows:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reserved | Flags |S|N|L|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Request-ID-number #1 |
// //
| Request-ID-number #M |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 18: SVEC Body Object Format
Reserved (8 bits): This field MUST be set to zero on transmission
and MUST be ignored on receipt.
Flags (24 bits): Defines the potential dependency between the set of
path computation requests.
L (Link diverse) bit: when set, this indicates that the
computed paths corresponding to the requests specified by the
following RP objects MUST NOT have any link in common.
N (Node diverse) bit: when set, this indicates that the
computed paths corresponding to the requests specified by the
following RP objects MUST NOT have any node in common.
S (SRLG diverse) bit: when set, this indicates that the
computed paths corresponding to the requests specified by the
following RP objects MUST NOT share any SRLG (Shared Risk Link
Group).
In case of a set of M synchronized independent path computation
requests, the bits L, N, and S are cleared.
Unassigned flags MUST be set to zero on transmission and MUST be
ignored on receipt.
The flags defined above are not exclusive.
Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res| Constructor and Description |
|---|
Svec()
Construct new SVEC Object from scratch
|
Svec(byte[] bytes,
int offset)
Constructs a SVEC object from a sequence of bytes
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestID(long reqID) |
void |
decode()
Decode the PCEP SVEC Object
|
void |
encode()
Encode the PCEP SVEC Object
|
boolean |
equals(Object obj) |
ArrayList<Long> |
getRequestIDlist() |
int |
hashCode() |
boolean |
islDiverseBit() |
boolean |
isnDiverseBit() |
boolean |
issRLGDiverseBit() |
void |
setLDiverseBit(boolean lDiverseBit) |
void |
setNDiverseBit(boolean nDiverseBit) |
void |
setRequestIDlist(ArrayList<Long> requestIDlist) |
void |
setSRLGDiverseBit(boolean sRLGDiverseBit) |
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 Svec()
public Svec(byte[] bytes,
int offset)
throws MalformedPCEPObjectException
bytes - Sequence of bytes where the object is presentoffset - Position at which the object startsMalformedPCEPObjectExceptionpublic void encode()
encode in interface PCEPElementencode in class PCEPObjectpublic void decode()
throws MalformedPCEPObjectException
decode in class PCEPObjectMalformedPCEPObjectExceptionpublic boolean islDiverseBit()
public void setLDiverseBit(boolean lDiverseBit)
public boolean isnDiverseBit()
public void setNDiverseBit(boolean nDiverseBit)
public boolean issRLGDiverseBit()
public void setSRLGDiverseBit(boolean sRLGDiverseBit)
public void addRequestID(long reqID)
public int hashCode()
hashCode in class PCEPObjectpublic boolean equals(Object obj)
equals in class PCEPObjectCopyright © 2016. All rights reserved.