public interface IPassiveResource
Modifier and Type | Method and Description |
---|---|
boolean |
acquire(ISchedulableProcess process,
long num,
boolean timeout,
double timeoutValue)
Acquires num instances of the passive resource for the given process.
|
void |
addObserver(IPassiveResourceSensor observer)
Adds the given observer.
|
org.palladiosimulator.pcm.core.composition.AssemblyContext |
getAssemblyContext()
Getter for the model element of the assembly context.
|
long |
getAvailable()
Returns the number of remaining instances.
|
long |
getCapacity()
Returns the maximal number of instances that can be acquired at the same time.
|
String |
getId()
Unique identifier of the resource.
|
String |
getName()
Name of the resource.
|
org.palladiosimulator.pcm.repository.PassiveResource |
getResource()
Getter for the model element of the passive resource.
|
Queue<IWaitingProcess> |
getWaitingProcesses()
Returns a queue containing the waiting processes for the passive resource.
|
void |
release(ISchedulableProcess process,
long num)
Releases num instances of the passive resource from the given process.
|
void |
removeObserver(IPassiveResourceSensor observer)
Removes the given observer
|
boolean acquire(ISchedulableProcess process, long num, boolean timeout, double timeoutValue)
void release(ISchedulableProcess process, long num)
org.palladiosimulator.pcm.repository.PassiveResource getResource()
org.palladiosimulator.pcm.core.composition.AssemblyContext getAssemblyContext()
String getName()
String getId()
long getCapacity()
long getAvailable()
void addObserver(IPassiveResourceSensor observer)
void removeObserver(IPassiveResourceSensor observer)
Queue<IWaitingProcess> getWaitingProcesses()