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 (ActiveResourceRep
orPassiveResourceRep
)
- 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 boolean
exclude(R resource)
Returns if an instrumentable is excluded.String
getHint()
R
getResource()
void
setResource(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:InstrumentableRestriction
Returns if an instrumentable is excluded.- Specified by:
exclude
in interfaceInstrumentableRestriction<R extends ResourceRepresentative>
- Parameters:
resource
- the instrumentable to be checked- Returns:
true
, if the instrumentable should be excluded orfalse
otherwise
-
getHint
public String getHint()
- Specified by:
getHint
in interfaceInstrumentableRestriction<R extends ResourceRepresentative>
-
-