uk.ac.nott.cs.g54dia.library
Class Station

java.lang.Object
  extended by uk.ac.nott.cs.g54dia.library.DefaultCell
      extended by uk.ac.nott.cs.g54dia.library.Station
All Implemented Interfaces:
Cell

public class Station
extends DefaultCell

A environment cell which contains a water station.


Field Summary
(package private) static double NEW_TASK_PROBABILITY
           
private  Task task
           
 
Constructor Summary
Station(Point pos)
           
 
Method Summary
protected  void generateTask()
           
 Task getTask()
           
protected  void removeTask()
           
 
Methods inherited from class uk.ac.nott.cs.g54dia.library.DefaultCell
getPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEW_TASK_PROBABILITY

static final double NEW_TASK_PROBABILITY
See Also:
Constant Field Values

task

private Task task
Constructor Detail

Station

Station(Point pos)
Method Detail

generateTask

protected void generateTask()

getTask

public Task getTask()

removeTask

protected void removeTask()