Class UserActionRule
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.description.core.SetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
-
- edu.kit.ipd.sdq.eventsim.instrumentation.description.useraction.UserActionRule
-
- Type Parameters:
A
- the user action type
- All Implemented Interfaces:
InstrumentationRule
public class UserActionRule extends SetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
AnInstrumentationRule
for subtypes ofAbstractUserAction
.
-
-
Constructor Summary
Constructors Constructor Description UserActionRule()
UserActionRule(Class<? extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction> actionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRestriction(InstrumentableRestriction<UserActionRepresentative> restriction)
boolean
affects(Instrumentable instrumentable)
Returns if anInstrumentable
would be probed if it comes to injection of the instrumentation.Class<UserActionRepresentative>
getInstrumentableType()
Class<? extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>
getProbedType()
List<InstrumentableRestriction<UserActionRepresentative>>
getRestrictions()
UserActionSet
getUserActionSet()
Class<? extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>
getUserActionType()
void
removeRestriction(InstrumentableRestriction<UserActionRepresentative> restriction)
void
setUserActionSet(UserActionSet 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
-
UserActionRule
public UserActionRule()
-
UserActionRule
public UserActionRule(Class<? extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction> actionType)
-
-
Method Detail
-
getUserActionType
public Class<? extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction> getUserActionType()
-
getUserActionSet
public UserActionSet getUserActionSet()
-
setUserActionSet
public void setUserActionSet(UserActionSet 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.usagemodel.AbstractUserAction> getProbedType()
- Specified by:
getProbedType
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
-
getInstrumentableType
public Class<UserActionRepresentative> getInstrumentableType()
- Specified by:
getInstrumentableType
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
-
addRestriction
public void addRestriction(InstrumentableRestriction<UserActionRepresentative> restriction)
- Specified by:
addRestriction
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
-
removeRestriction
public void removeRestriction(InstrumentableRestriction<UserActionRepresentative> restriction)
- Specified by:
removeRestriction
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
-
getRestrictions
public List<InstrumentableRestriction<UserActionRepresentative>> getRestrictions()
- Specified by:
getRestrictions
in classSetBasedInstrumentationRule<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,UserActionRepresentative>
-
-