Class SetBasedInstrumentationRule<P,I extends Instrumentable>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.description.core.SetBasedInstrumentationRule<P,I>
-
- Type Parameters:
P
- the proped type (the type for which probes are created, e.g.: AbstractAction)I
- the instrumentable type (the type of entities that are used in instrumentable set, restrictions, etc., e.g.: ActionRepresentative)
- All Implemented Interfaces:
InstrumentationRule
- Direct Known Subclasses:
ActionRule
,ResourceRule
,UserActionRule
public abstract class SetBasedInstrumentationRule<P,I extends Instrumentable> extends Object implements InstrumentationRule
Subsumes common implementations of instrumentation rules describing instrumentation of a set of entities by both a set of probes and a set of calculators. The set is specified indirectly by all entities of a specific type which are not excluded by one of the restrictions.- See Also:
InstrumentableRestriction
,InstrumentableSet
-
-
Constructor Summary
Constructors Constructor Description SetBasedInstrumentationRule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addCalculator(CalculatorRepresentative calculator)
void
addProbe(ProbeRepresentative probe)
abstract void
addRestriction(InstrumentableRestriction<I> restriction)
Set<CalculatorRepresentative>
getCalculators()
abstract Class<I>
getInstrumentableType()
String
getName()
abstract Class<? extends P>
getProbedType()
Set<ProbeRepresentative>
getProbes()
abstract List<InstrumentableRestriction<I>>
getRestrictions()
void
removeCalculator(CalculatorRepresentative calculator)
void
removeProbe(ProbeRepresentative probe)
abstract void
removeRestriction(InstrumentableRestriction<I> restriction)
void
setCalculators(Set<CalculatorRepresentative> calculators)
void
setName(String name)
void
setProbes(Set<ProbeRepresentative> probes)
-
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.InstrumentationRule
affects
-
-
-
-
Method Detail
-
getProbes
public Set<ProbeRepresentative> getProbes()
-
setProbes
public void setProbes(Set<ProbeRepresentative> probes)
-
addProbe
public void addProbe(ProbeRepresentative probe)
-
removeProbe
public void removeProbe(ProbeRepresentative probe)
-
getCalculators
public Set<CalculatorRepresentative> getCalculators()
-
setCalculators
public void setCalculators(Set<CalculatorRepresentative> calculators)
-
addCalculator
public void addCalculator(CalculatorRepresentative calculator)
-
removeCalculator
public void removeCalculator(CalculatorRepresentative calculator)
-
getName
public String getName()
- Specified by:
getName
in interfaceInstrumentationRule
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceInstrumentationRule
-
addRestriction
public abstract void addRestriction(InstrumentableRestriction<I> restriction)
-
removeRestriction
public abstract void removeRestriction(InstrumentableRestriction<I> restriction)
-
getRestrictions
public abstract List<InstrumentableRestriction<I>> getRestrictions()
-
-