Class SingleActionRestriction<A extends org.palladiosimulator.pcm.seff.AbstractAction>

  • Type Parameters:
    A - the type of the action
    All Implemented Interfaces:
    InstrumentableRestriction<ActionRepresentative>

    public class SingleActionRestriction<A extends org.palladiosimulator.pcm.seff.AbstractAction>
    extends Object
    implements InstrumentableRestriction<ActionRepresentative>
    A specific restriction for actions excluding all actions except for one. This action is specified by the corresponding id. Assembly and allocations contexts are not considered.
    Note that only one of this restriction per instrumentation rule should be introduced, since two different of them would produce an empty set.
    • Constructor Detail

      • SingleActionRestriction

        public SingleActionRestriction​(A action)
      • SingleActionRestriction

        public SingleActionRestriction()
      • SingleActionRestriction

        public SingleActionRestriction​(String actionId,
                                       Class<A> actionType)
    • Method Detail

      • exclude

        public boolean exclude​(ActionRepresentative action)
        Description copied from interface: InstrumentableRestriction
        Returns if an instrumentable is excluded.
        Specified by:
        exclude in interface InstrumentableRestriction<A extends org.palladiosimulator.pcm.seff.AbstractAction>
        Parameters:
        action - the instrumentable to be checked
        Returns:
        true, if the instrumentable should be excluded or false otherwise
      • getActionId

        public String getActionId()
      • setActionId

        public void setActionId​(String actionId)
      • getActionType

        public Class<A> getActionType()
      • setActionType

        public void setActionType​(Class<A> actionType)