Package org.onosproject.net.pi.runtime
Class PiRegisterCellId
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiRegisterCellId
-
@Beta public final class PiRegisterCellId extends 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(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.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
-
-