Package org.onosproject.net.pi.runtime
Class PiRegisterCellId
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiRegisterCellId
-
@Beta public final class PiRegisterCellId extends java.lang.Object
Identifier of a register cell in a protocol-independent pipeline.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
long
index()
Returns the register index to which this cell ID is associated.static PiRegisterCellId
of(PiRegisterId registerId, long index)
Return a register cell ID for the given register ID and index.PiRegisterId
registerId()
Returns the identifier of the register instance where this cell is contained.java.lang.String
toString()
-
-
-
Method Detail
-
registerId
public PiRegisterId registerId()
Returns the identifier of the register instance where this cell is contained.- Returns:
- register identifier
-
index
public long index()
Returns the register index to which this cell ID is associated.- Returns:
- register index
-
of
public static PiRegisterCellId of(PiRegisterId registerId, long index)
Return a register cell ID for the given register ID and index.- Parameters:
registerId
- register IDindex
- index- Returns:
- register cell ID
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-