public abstract class ASimpleActiveResource extends Observable
The state of a concrete example active resource can be manually controlled.
| Constructor and Description |
|---|
ASimpleActiveResource() |
| Modifier and Type | Method and 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.
|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserverspublic int getJobs()
public void setJobs(int jobs)
jobs - the job count to be assignedpublic void demand(double demand)
demand - Demand to the resource.