Class InstrumentableSet<I extends Instrumentable>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.description.core.InstrumentableSet<I>
-
- Type Parameters:
I
- the most general type ofInstrumentable
s the set deals with.
- Direct Known Subclasses:
ActionSet
,ResourceSet
,UserActionSet
public abstract class InstrumentableSet<I extends Instrumentable> extends Object
A set forInstrumentable
s. It is specified indirectly by all entities of a specific type which are not excluded by one of the restrictions. The restrictions are combined with the logical AND. For example, if the restrictionsa
andb
are specified, an instrumentablei
is included (meaning not excluded), if the following condition holds:
!a.exclude(i) && !b.exclude(i)
-
-
Constructor Summary
Constructors Constructor Description InstrumentableSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRestriction(InstrumentableRestriction<I> res)
boolean
contains(I instrumentable)
List<I>
filter(List<I> instrumentables)
List<InstrumentableRestriction<I>>
getRestrictions()
void
removeRestriction(InstrumentableRestriction<I> res)
void
setRestrictions(List<InstrumentableRestriction<I>> restrictions)
-
-
-
Method Detail
-
getRestrictions
public List<InstrumentableRestriction<I>> getRestrictions()
-
setRestrictions
public void setRestrictions(List<InstrumentableRestriction<I>> restrictions)
-
addRestriction
public void addRestriction(InstrumentableRestriction<I> res)
-
removeRestriction
public void removeRestriction(InstrumentableRestriction<I> res)
-
contains
public boolean contains(I instrumentable)
-
-