@Beta
public interface PiTableModel
Modifier and Type | Method and Description |
---|---|
java.util.Optional<PiActionModel> |
action(PiActionId actionId)
Returns the action model associated with the given ID, if present.
|
PiActionProfileModel |
actionProfile()
Returns the model of the action profile that implements this table.
|
java.util.Collection<PiActionModel> |
actions()
Returns the actions supported by this table.
|
java.util.Collection<PiCounterModel> |
counters()
Returns a collection of direct counters associated to this table.
|
java.util.Optional<PiActionModel> |
defaultAction()
Returns the model of the default action associated with this table, if any.
|
boolean |
hasDefaultMutableParams()
Returns true if the default action has mutable parameters that can be changed at runtime, false otherwise.
|
PiTableId |
id()
Returns the ID of this table.
|
java.util.Optional<PiMatchFieldModel> |
matchField(PiMatchFieldId matchFieldId)
Returns the match field model associated with the given ID, if present.
|
java.util.Collection<PiMatchFieldModel> |
matchFields()
Returns the collection of match fields supported by this table.
|
long |
maxSize()
Returns the maximum number of entries supported by this table.
|
java.util.Collection<PiMeterModel> |
meters()
Returns a collection of direct meters associated to this table.
|
boolean |
supportsAging()
Returns true if this table supports aging, false otherwise.
|
PiTableType |
tableType()
Returns the type of this table.
|
PiTableId id()
PiTableType tableType()
PiActionProfileModel actionProfile()
PiTableType.INDIRECT
, otherwise returns null.long maxSize()
java.util.Collection<PiCounterModel> counters()
java.util.Collection<PiMeterModel> meters()
boolean supportsAging()
java.util.Collection<PiMatchFieldModel> matchFields()
java.util.Collection<PiActionModel> actions()
java.util.Optional<PiActionModel> defaultAction()
boolean hasDefaultMutableParams()
java.util.Optional<PiActionModel> action(PiActionId actionId)
actionId
- action IDjava.util.Optional<PiMatchFieldModel> matchField(PiMatchFieldId matchFieldId)
matchFieldId
- match field ID