frysk.hpd
Class TaskData

java.lang.Object
  extended by frysk.hpd.TaskData

 class TaskData
extends Object

A class which holds a Task and any internal info about it. It is immutable.


Field Summary
(package private)  int id
           
(package private)  int parentid
           
(package private)  Task task
           
 
Constructor Summary
TaskData(Task task, int id, int parentid)
           
 
Method Summary
 int getID()
           
 int getParentID()
           
 Task getTask()
           
 boolean isStopped()
          XXX: The way to determine if a task is stopped is via the stepping engine which determines when, from the HPD's point-of-view, a task can be considered stopped.
 void printHeader(PrintWriter printWriter)
          If appropriate (more than one task), print this tasks header (parentId.id tuple)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

int id

parentid

int parentid

task

Task task
Constructor Detail

TaskData

public TaskData(Task task,
                int id,
                int parentid)
Method Detail

getID

public int getID()

getParentID

public int getParentID()

getTask

public Task getTask()

toString

public String toString()
Overrides:
toString in class Object

printHeader

public void printHeader(PrintWriter printWriter)
If appropriate (more than one task), print this tasks header (parentId.id tuple)

Parameters:
printWriter - the PrintWriter to print output to.

isStopped

public boolean isStopped()
XXX: The way to determine if a task is stopped is via the stepping engine which determines when, from the HPD's point-of-view, a task can be considered stopped.