|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.data.Tlv
public class Tlv
The class implements the TLV, as specified in OLSRv2.
Constructor Summary | |
---|---|
Tlv(TlvTypes type)
Constructor |
Method Summary | |
---|---|
byte[] |
getBytes()
Returns the bytes of the TLV |
int |
getIndexStart()
Returns the index start |
int |
getIndexStop()
Return the index stop |
int |
getSemantics()
Returns the TLV semantics |
TlvTypes |
getType()
Returns the TLV types |
byte[] |
getValue()
Returns the TLV value as a byte stream |
boolean |
isValidForAddress(int i)
Checks to see if a given index is valid for an IP address in an address block |
void |
setIndexStart(int indexStart)
Sets the index start |
void |
setIndexStop(int indexStop)
Sets the index stop |
void |
setSemantics(int semantics)
Sets the TLV semantics |
void |
setValue(byte value)
Sets the TLV value a single byte |
void |
setValue(byte[] value)
Sets the TLV value as a byte stream |
void |
setValue(Values value)
Sets the TLV value as a Value |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tlv(TlvTypes type)
type
- the TLV typeMethod Detail |
---|
public int getSemantics()
public void setSemantics(int semantics)
semantics
- the TLV semanticspublic byte[] getValue()
public void setValue(byte[] value)
value
- the TLV valuepublic void setValue(Values value)
value
- the TLV valuepublic void setValue(byte value)
value
- the TLV aspublic TlvTypes getType()
public int getIndexStart()
public void setIndexStart(int indexStart)
indexStart
- the index startpublic int getIndexStop()
public void setIndexStop(int indexStop)
indexStop
- the index stoppublic byte[] getBytes()
public boolean isValidForAddress(int i)
i
- the index
AddressBlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |