Package org.onosproject.net.pi.model
Interface PiPipelineModel
-
@Beta public interface PiPipelineModelModel of a protocol-independent pipeline.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<PiActionProfileModel>actionProfiles()Returns all action profile models defined by this pipeline model.java.util.Optional<PiActionProfileModel>actionProfiles(PiActionProfileId actionProfileId)Returns the action profile model associated with the given ID, if present.java.util.Optional<PiCounterModel>counter(PiCounterId counterId)Returns the counter model associated with the given ID, if present.java.util.Collection<PiCounterModel>counters()Returns all counter models defined by this pipeline model.java.util.Optional<PiMeterModel>meter(PiMeterId meterId)Returns the meter model associated with the given ID, if present.java.util.Collection<PiMeterModel>meters()Returns all meter models defined by this pipeline model.java.util.Optional<PiPacketOperationModel>packetOperationModel(PiPacketOperationType type)Returns the packet operation model of the given type, if present.java.util.Optional<PiRegisterModel>register(PiRegisterId registerId)Returns the register model associated with the given ID, if present.java.util.Collection<PiRegisterModel>registers()Returns all register models defined by this pipeline model.java.util.Optional<PiTableModel>table(PiTableId tableId)Returns the table model associated with the given ID, if present.java.util.Collection<PiTableModel>tables()Returns the collection of all table models defined by this pipeline model.
-
-
-
Method Detail
-
table
java.util.Optional<PiTableModel> table(PiTableId tableId)
Returns the table model associated with the given ID, if present.- Parameters:
tableId- table ID- Returns:
- optional table model
-
tables
java.util.Collection<PiTableModel> tables()
Returns the collection of all table models defined by this pipeline model.- Returns:
- collection of actions
-
counter
java.util.Optional<PiCounterModel> counter(PiCounterId counterId)
Returns the counter model associated with the given ID, if present.- Parameters:
counterId- counter ID- Returns:
- optional counter model
-
counters
java.util.Collection<PiCounterModel> counters()
Returns all counter models defined by this pipeline model.- Returns:
- collection of counter models
-
meter
java.util.Optional<PiMeterModel> meter(PiMeterId meterId)
Returns the meter model associated with the given ID, if present.- Parameters:
meterId- meter ID- Returns:
- optional meter model
-
meters
java.util.Collection<PiMeterModel> meters()
Returns all meter models defined by this pipeline model.- Returns:
- collection of meter models
-
register
java.util.Optional<PiRegisterModel> register(PiRegisterId registerId)
Returns the register model associated with the given ID, if present.- Parameters:
registerId- register ID- Returns:
- optional register model
-
registers
java.util.Collection<PiRegisterModel> registers()
Returns all register models defined by this pipeline model.- Returns:
- collection of register models
-
actionProfiles
java.util.Optional<PiActionProfileModel> actionProfiles(PiActionProfileId actionProfileId)
Returns the action profile model associated with the given ID, if present.- Parameters:
actionProfileId- action profile ID- Returns:
- optional action profile model
-
actionProfiles
java.util.Collection<PiActionProfileModel> actionProfiles()
Returns all action profile models defined by this pipeline model.- Returns:
- collection of action profile models
-
packetOperationModel
java.util.Optional<PiPacketOperationModel> packetOperationModel(PiPacketOperationType type)
Returns the packet operation model of the given type, if present.- Parameters:
type- packet operation type- Returns:
- packet operation model
-
-