Class NxmHeader
- java.lang.Object
- 
- org.opendaylight.openflowjava.nx.codec.match.NxmHeader
 
- 
 public class NxmHeader extends Object Nxm header.- Author:
- msunal
 
- 
- 
Constructor SummaryConstructors Constructor Description NxmHeader(int nxmField, boolean hasMask, int length, long experimenterId)Build a experimenter header from it's constituent fields.NxmHeader(int oxmClass, int nxmField, boolean hasMask, int length)Build a non experimenter header from it's constituent fields.NxmHeader(long header)Builds aNxmHeaderfrom alongrepresentation.NxmHeader(org.opendaylight.yangtools.yang.common.Uint64 header)Builds aNxmHeaderfrom aBigIntegerrepresentation, that is, one for whichBigInteger.longValue()produces a valid long representation.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetExperimenterId()intgetLength()intgetNxmField()intgetOxmClass()inthashCode()booleanisExperimenter()static booleanisExperimenter(org.opendaylight.yangtools.yang.common.Uint64 uint)booleanisHasMask()longtoLong()Returns thelongrepresentation of the header.StringtoString()org.opendaylight.yangtools.yang.common.Uint64toUint64()Returns theUint64representation of the header.
 
- 
- 
- 
Constructor Detail- 
NxmHeaderpublic NxmHeader(org.opendaylight.yangtools.yang.common.Uint64 header) Builds aNxmHeaderfrom aBigIntegerrepresentation, that is, one for whichBigInteger.longValue()produces a valid long representation.- Parameters:
- header- the header as- BigInteger.
- See Also:
- NxmHeader(long)
 
 - 
NxmHeaderpublic NxmHeader(long header) Builds aNxmHeaderfrom alongrepresentation. For non experimenter, the 4 byte header are the least significant of the long, being the other 4 most significant bytes 0. For experimenter, the full 8 byte constitute the header, being the 4 least significant the experimenter id.- Parameters:
- header- the header as a- long.
 
 - 
NxmHeaderpublic NxmHeader(int oxmClass, int nxmField, boolean hasMask, int length)Build a non experimenter header from it's constituent fields.- Parameters:
- oxmClass- the OXM class.
- nxmField- the NXM field.
- hasMask- the hasMask field.
- length- the length field.
 
 - 
NxmHeaderpublic NxmHeader(int nxmField, boolean hasMask, int length, long experimenterId)Build a experimenter header from it's constituent fields. The OXM class will be set to 0xFFFF.- Parameters:
- nxmField- the NXM field.
- hasMask- the hasMask field.
- length- the length field.
- experimenterId- the esperimenter id field.
 
 
- 
 - 
Method Detail- 
toUint64public org.opendaylight.yangtools.yang.common.Uint64 toUint64() Returns theUint64representation of the header.- Returns:
- the header.
- See Also:
- NxmHeader(Uint64)
 
 - 
toLongpublic long toLong() Returns thelongrepresentation of the header.- Returns:
- the header.
- See Also:
- NxmHeader(long)
 
 - 
getOxmClasspublic int getOxmClass() 
 - 
getNxmFieldpublic int getNxmField() 
 - 
isHasMaskpublic boolean isHasMask() 
 - 
getLengthpublic int getLength() 
 - 
getExperimenterIdpublic long getExperimenterId() 
 - 
isExperimenterpublic boolean isExperimenter() 
 - 
isExperimenterpublic static boolean isExperimenter(org.opendaylight.yangtools.yang.common.Uint64 uint) 
 
- 
 
-