Class SingleResourceRestriction<R extends ResourceRepresentative>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.instrumentation.restrictions.resource.SingleResourceRestriction<R>
-
- Type Parameters:
R- the type of the resource (ActiveResourceReporPassiveResourceRep)
- All Implemented Interfaces:
InstrumentableRestriction<R>
public class SingleResourceRestriction<R extends ResourceRepresentative> extends Object implements InstrumentableRestriction<R>
A restriction for resources that exclude all resources except for one.
-
-
Field Summary
-
Fields inherited from interface edu.kit.ipd.sdq.eventsim.instrumentation.description.core.InstrumentableRestriction
EXTENSION_POINT_ID
-
-
Constructor Summary
Constructors Constructor Description SingleResourceRestriction()SingleResourceRestriction(R resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexclude(R resource)Returns if an instrumentable is excluded.StringgetHint()RgetResource()voidsetResource(R resource)-
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.InstrumentableRestriction
filter
-
-
-
-
Constructor Detail
-
SingleResourceRestriction
public SingleResourceRestriction(R resource)
-
SingleResourceRestriction
public SingleResourceRestriction()
-
-
Method Detail
-
getResource
public R getResource()
-
setResource
public void setResource(R resource)
-
exclude
public boolean exclude(R resource)
Description copied from interface:InstrumentableRestrictionReturns if an instrumentable is excluded.- Specified by:
excludein interfaceInstrumentableRestriction<R extends ResourceRepresentative>- Parameters:
resource- the instrumentable to be checked- Returns:
true, if the instrumentable should be excluded orfalseotherwise
-
getHint
public String getHint()
- Specified by:
getHintin interfaceInstrumentableRestriction<R extends ResourceRepresentative>
-
-