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 classPiActionProfileGroup.BuilderBuilder of action profile groups.static classPiActionProfileGroup.WeightedMemberWeighted 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 PiActionProfileIdactionProfile()Returns the ID of the action profile where this group belong.static PiActionProfileGroup.Builderbuilder()Returns a new builder of action profile groups.booleanequals(Object obj)PiActionProfileGroupHandlehandle(DeviceId deviceId)Returns a handle for this PI entity and the given device ID.inthashCode()PiActionProfileGroupIdid()Returns the ID of this action profile group.intmaxSize()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.PiEntityTypepiEntityType()Returns the type of this entity.StringtoString()
-
-
-
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:PiEntityReturns the type of this entity.- Specified by:
piEntityTypein interfacePiEntity- Returns:
- entity type
-
handle
public PiActionProfileGroupHandle handle(DeviceId deviceId)
Description copied from interface:PiEntityReturns a handle for this PI entity and the given device ID.
-
-