Class ASimpleActiveResource
- java.lang.Object
-
- java.util.Observable
-
- org.palladiosimulator.probeframework.probes.example.ASimpleActiveResource
-
- Direct Known Subclasses:
SimpleCPUResource
public abstract class ASimpleActiveResource extends Observable
Represents an abstract active resource for demonstration purposes.The state of a concrete example active resource can be manually controlled.
-
-
Constructor Summary
Constructors Constructor Description ASimpleActiveResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
demand(double demand)
Puts demand on the active resource.int
getJobs()
Returns the amount of currently assigned jobs.void
setJobs(int jobs)
Sets the amount of currently assigned jobs.-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Method Detail
-
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.
-
-