Class SingleActionRestriction<A extends org.palladiosimulator.pcm.seff.AbstractAction>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.restrictions.action.SingleActionRestriction<A>
-
- 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.
-
-
Field Summary
-
Fields inherited from interface edu.kit.ipd.sdq.eventsim.instrumentation.description.core.InstrumentableRestriction
EXTENSION_POINT_ID
-
-
Constructor Summary
Constructors Constructor Description SingleActionRestriction()SingleActionRestriction(A action)SingleActionRestriction(String actionId, Class<A> actionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexclude(ActionRepresentative action)Returns if an instrumentable is excluded.StringgetActionId()Class<A>getActionType()StringgetHint()voidsetActionId(String actionId)voidsetActionType(Class<A> actionType)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.kit.ipd.sdq.eventsim.instrumentation.description.core.InstrumentableRestriction
filter
-
-
-
-
Method Detail
-
exclude
public boolean exclude(ActionRepresentative action)
Description copied from interface:InstrumentableRestrictionReturns if an instrumentable is excluded.- Specified by:
excludein interfaceInstrumentableRestriction<A extends org.palladiosimulator.pcm.seff.AbstractAction>- Parameters:
action- the instrumentable to be checked- Returns:
true, if the instrumentable should be excluded orfalseotherwise
-
getActionId
public String getActionId()
-
setActionId
public void setActionId(String actionId)
-
getHint
public String getHint()
- Specified by:
getHintin interfaceInstrumentableRestriction<A extends org.palladiosimulator.pcm.seff.AbstractAction>
-
-