Class ActionRule
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.description.core.SetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
- edu.kit.ipd.sdq.eventsim.instrumentation.description.action.ActionRule
-
- Type Parameters:
A- the action type
- All Implemented Interfaces:
InstrumentationRule
public class ActionRule extends SetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
AnInstrumentationRulefor subtypes ofAbstractAction.- See Also:
SetBasedInstrumentationRule,ActionRepresentative
-
-
Constructor Summary
Constructors Constructor Description ActionRule()ActionRule(Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> actionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRestriction(InstrumentableRestriction<ActionRepresentative> restriction)booleanaffects(Instrumentable instrumentable)Returns if anInstrumentablewould be probed if it comes to injection of the instrumentation.ActionSetgetActionSet()Class<? extends org.palladiosimulator.pcm.seff.AbstractAction>getActionType()Class<ActionRepresentative>getInstrumentableType()Class<? extends org.palladiosimulator.pcm.seff.AbstractAction>getProbedType()List<InstrumentableRestriction<ActionRepresentative>>getRestrictions()voidremoveRestriction(InstrumentableRestriction<ActionRepresentative> restriction)voidsetActionSet(ActionSet actions)-
Methods inherited from class edu.kit.ipd.sdq.eventsim.instrumentation.description.core.SetBasedInstrumentationRule
addCalculator, addProbe, getCalculators, getName, getProbes, removeCalculator, removeProbe, setCalculators, setName, setProbes
-
-
-
-
Constructor Detail
-
ActionRule
public ActionRule()
-
ActionRule
public ActionRule(Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> actionType)
-
-
Method Detail
-
getActionType
public Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> getActionType()
-
getActionSet
public ActionSet getActionSet()
-
setActionSet
public void setActionSet(ActionSet actions)
-
affects
public boolean affects(Instrumentable instrumentable)
Description copied from interface:InstrumentationRuleReturns if anInstrumentablewould be probed if it comes to injection of the instrumentation.- Parameters:
instrumentable- anInstrumentableto be checked- Returns:
true, if the instrumentable will be probed orfalseotherwise
-
getProbedType
public Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> getProbedType()
- Specified by:
getProbedTypein classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
getInstrumentableType
public Class<ActionRepresentative> getInstrumentableType()
- Specified by:
getInstrumentableTypein classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
addRestriction
public void addRestriction(InstrumentableRestriction<ActionRepresentative> restriction)
- Specified by:
addRestrictionin classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
removeRestriction
public void removeRestriction(InstrumentableRestriction<ActionRepresentative> restriction)
- Specified by:
removeRestrictionin classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
getRestrictions
public List<InstrumentableRestriction<ActionRepresentative>> getRestrictions()
- Specified by:
getRestrictionsin classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
-