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>
AnInstrumentationRule
for 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 void
addRestriction(InstrumentableRestriction<ActionRepresentative> restriction)
boolean
affects(Instrumentable instrumentable)
Returns if anInstrumentable
would be probed if it comes to injection of the instrumentation.ActionSet
getActionSet()
Class<? extends org.palladiosimulator.pcm.seff.AbstractAction>
getActionType()
Class<ActionRepresentative>
getInstrumentableType()
Class<? extends org.palladiosimulator.pcm.seff.AbstractAction>
getProbedType()
List<InstrumentableRestriction<ActionRepresentative>>
getRestrictions()
void
removeRestriction(InstrumentableRestriction<ActionRepresentative> restriction)
void
setActionSet(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:InstrumentationRule
Returns if anInstrumentable
would be probed if it comes to injection of the instrumentation.- Parameters:
instrumentable
- anInstrumentable
to be checked- Returns:
true
, if the instrumentable will be probed orfalse
otherwise
-
getProbedType
public Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> getProbedType()
- Specified by:
getProbedType
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
getInstrumentableType
public Class<ActionRepresentative> getInstrumentableType()
- Specified by:
getInstrumentableType
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
addRestriction
public void addRestriction(InstrumentableRestriction<ActionRepresentative> restriction)
- Specified by:
addRestriction
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
removeRestriction
public void removeRestriction(InstrumentableRestriction<ActionRepresentative> restriction)
- Specified by:
removeRestriction
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
getRestrictions
public List<InstrumentableRestriction<ActionRepresentative>> getRestrictions()
- Specified by:
getRestrictions
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.seff.AbstractAction,ActionRepresentative>
-
-