|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.BGP4.Path.Attribute
A BGP path attribute. Path attributes are used to keep information about routes helps in making routing decisions.
| Field Summary | |
static java.lang.String[] |
dmlnames
The names of the path attributes as DML attributes. |
static int |
MAX_TYPECODE
The highest path attribute type code value used in the simulation. |
static int |
MIN_TYPECODE
The lowest path attribute type code value. |
static java.lang.String[] |
names
The names of the attributes as strings. |
static java.lang.String[] |
nhidmlnames
The names of NHI versions of path attributes as DML attributes. |
static java.lang.String |
undefined
For undefined string values. |
| Constructor Summary | |
Attribute()
Empty constructor. |
|
| Method Summary | |
abstract int |
bytecount()
Calculates and returns the number of octets (bytes) needed to represent this path attribute in an update message. |
abstract Attribute |
copy()
Constructs and returns a copy of the attribute. |
abstract boolean |
equals(Attribute attrib)
Determines whether or not this path attribute is equivalent to another. |
abstract boolean |
opt()
Returns whether the path attribute is optional (true) or well-known (false). |
abstract 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)
|
abstract 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, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String undefined
public static final int MIN_TYPECODE
public static final int MAX_TYPECODE
public static final java.lang.String[] names
public static final java.lang.String[] dmlnames
public static final java.lang.String[] nhidmlnames
| Constructor Detail |
public Attribute()
| Method Detail |
public abstract Attribute copy()
public abstract boolean opt()
public abstract boolean trans()
public abstract boolean partial()
public abstract int bytecount()
public abstract boolean equals(Attribute attrib)
attrib - A path attribute to compare to this one.
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException - if there's an error writing the data
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
java.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.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
public void readExternal(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.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 | |||||||||