Package org.onosproject.net.pi.runtime
Class PiActionProfileGroup
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiActionProfileGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PiActionProfileGroup.Builder
Builder of action profile groups.static class
PiActionProfileGroup.WeightedMember
Weighted reference to an action profile member as used in an action profile group.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PiActionProfileId
actionProfile()
Returns the ID of the action profile where this group belong.static PiActionProfileGroup.Builder
builder()
Returns a new builder of action profile groups.boolean
equals(Object obj)
PiActionProfileGroupHandle
handle(DeviceId deviceId)
Returns a handle for this PI entity and the given device ID.int
hashCode()
PiActionProfileGroupId
id()
Returns the ID of this action profile group.int
maxSize()
Returns the maximum number of members that this group can hold.Optional<PiActionProfileGroup.WeightedMember>
member(PiActionProfileMemberId memberId)
Returns the group member identified by the given action profile member ID, if present.Collection<PiActionProfileGroup.WeightedMember>
members()
Returns the list of member references of this action profile group.PiEntityType
piEntityType()
Returns the type of this entity.String
toString()
-
-
-
Method Detail
-
id
public PiActionProfileGroupId id()
Returns the ID of this action profile group.- Returns:
- action profile group ID
-
members
public Collection<PiActionProfileGroup.WeightedMember> members()
Returns the list of member references of this action profile group.- Returns:
- collection of action profile members.
-
member
public Optional<PiActionProfileGroup.WeightedMember> member(PiActionProfileMemberId memberId)
Returns the group member identified by the given action profile member ID, if present.- Parameters:
memberId
- action profile member ID- Returns:
- optional group member
-
maxSize
public int maxSize()
Returns the maximum number of members that this group can hold. 0 signifies that a limit is not set.- Returns:
- maximum number of members that this group can hold
-
actionProfile
public PiActionProfileId actionProfile()
Returns the ID of the action profile where this group belong.- Returns:
- action profile ID
-
builder
public static PiActionProfileGroup.Builder builder()
Returns a new builder of action profile groups.- Returns:
- action profile group builder
-
piEntityType
public PiEntityType piEntityType()
Description copied from interface:PiEntity
Returns the type of this entity.- Specified by:
piEntityType
in interfacePiEntity
- Returns:
- entity type
-
handle
public PiActionProfileGroupHandle handle(DeviceId deviceId)
Description copied from interface:PiEntity
Returns a handle for this PI entity and the given device ID.
-
-