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 booleanequals(Object obj)inthashCode()longindex()Returns the register index to which this cell ID is associated.static PiRegisterCellIdof(PiRegisterId registerId, long index)Return a register cell ID for the given register ID and index.PiRegisterIdregisterId()Returns the identifier of the register instance where this cell is contained.StringtoString()
-
-
-
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
-
-