|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.BGP4.Path.Attribute
|
+--SSF.OS.BGP4.Path.ClusterList
The cluster list path attribute. It is used to record the path that a route has taken through the route reflection hierarchy. It is optional and non-transitive.
| Field Summary | |
static java.lang.String |
dmlname
The name of the path attribute as a DML attribute. |
java.util.ArrayList |
list
The list of cluster numbers which represents the path that a route has taken through the route reflection hierarchy. |
static java.lang.String |
name
The name of the attribute as a string. |
static int |
TYPECODE
The cluster list path attribute type code. |
| Fields inherited from class SSF.OS.BGP4.Path.Attribute |
dmlnames, MAX_TYPECODE, MIN_TYPECODE, names, nhidmlnames, undefined |
| Constructor Summary | |
ClusterList()
Empty constructor. |
|
ClusterList(java.util.ArrayList l)
Constructs a cluster list path attribute given a list of cluster numbers. |
|
| Method Summary | |
void |
append(long cnum)
Appends a cluster number to the cluster list. |
int |
bytecount()
Returns the number of octets (bytes) needed to represent this cluster list path attribute in an update message. |
boolean |
contains(long cnum)
Determines whether or not the cluster list contains a given cluster number. |
Attribute |
copy()
Constructs and returns a copy of the attribute. |
boolean |
equals(Attribute attrib)
Determines whether or not this path attribute is equivalent to another. |
int |
length()
Returns the length of the cluster list (number of cluster numbers that it contains). |
boolean |
opt()
Returns whether the path attribute is optional (true) or well-known (false). |
boolean |
partial()
Returns whether or not the information contained in the optional transitive attribute is partial (true) or complete (false). |
void |
readExternal(java.io.DataInput in)
Reads the contents of this object from a serialization stream. |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
Returns the cluster list as a string. |
boolean |
trans()
Returns whether an optional attribute is transitive (true) or non-transitive (false). |
void |
writeExternal(java.io.DataOutput out)
Writes the contents of this object to a serialization stream. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the contents of this object to a data stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TYPECODE
public static final java.lang.String name
public static final java.lang.String dmlname
public java.util.ArrayList list
| Constructor Detail |
public ClusterList()
public ClusterList(java.util.ArrayList l)
l - A list of cluster numbers.| Method Detail |
public Attribute copy()
copy in class Attributepublic final boolean opt()
Attribute
opt in class Attributepublic final boolean trans()
Attribute
trans in class Attributepublic final boolean partial()
Attribute
partial in class Attributepublic int length()
public final boolean contains(long cnum)
cnum - The cluster number to look for in the cluster list.
public final void append(long cnum)
cnum - The cluster number to append.public int bytecount()
bytecount in class Attributepublic boolean equals(Attribute attrib)
equals in class Attributeattrib - A path attribute to compare to this one.
public final java.lang.String toString()
toString in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
Attribute
writeExternal in interface java.io.ExternalizablewriteExternal in class Attributejava.io.IOException - if there's an error writing the data
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in class Attributejava.io.IOException - if there's an error writing the data
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class Attributejava.io.IOException
java.lang.ClassNotFoundException
public void readExternal(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in class Attributejava.io.IOException - if there's an error reading in the data
java.lang.ClassNotFoundException - if a class name is unrecognized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||