cin.aquario
Class SetupRandom
java.lang.Object
org.simulare.Named
org.simulare.AbstractTask
cin.aquario.SetupRandom
- All Implemented Interfaces:
- Name, Task
- public class SetupRandom
- extends AbstractTask
Sets up an attribute with a value in the range of min up to max.
By now, this classe only set up attributes of tipe "int" or "double".
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SetupRandom
public SetupRandom()
SetupRandom
public SetupRandom(java.lang.String attribute,
double min,
double max)
getAttribute
public java.lang.String getAttribute()
setAttribute
public void setAttribute(java.lang.String attribute)
getMin
public double getMin()
setMin
public void setMin(double min)
getMax
public double getMax()
setMax
public void setMax(double max)
execute
public void execute(Item item)
- Description copied from interface:
Task
- Executes atask over an item. And must notify the listeners.
- Parameters:
item
- The item to execute a task over.