Class ASimpleActiveResource
java.lang.Object
java.util.Observable
org.palladiosimulator.probeframework.probes.example.ASimpleActiveResource
- Direct Known Subclasses:
SimpleCPUResource
Represents an abstract active resource for demonstration purposes.
The state of a concrete example active resource can be manually controlled.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
ASimpleActiveResource
public ASimpleActiveResource()
-
-
Method Details
-
getJobs
public int getJobs()Returns the amount of currently assigned jobs.- Returns:
- the currently assigned job count
-
setJobs
public void setJobs(int jobs) Sets the amount of currently assigned jobs.- Parameters:
jobs
- the job count to be assigned
-
demand
public void demand(double demand) Puts demand on the active resource.- Parameters:
demand
- Demand to the resource.
-