frysk.hpd
Class StaticPTSet

java.lang.Object
  extended by frysk.hpd.StaticPTSet
All Implemented Interfaces:
PTSet

 class StaticPTSet
extends Object
implements PTSet

A class which holds a number of ProcTasks. It is immutable.


Field Summary
(package private)  ProcTasks[] set
           
 
Constructor Summary
StaticPTSet(ProcTasks[] proctasks)
           
 
Method Summary
 boolean containsTask(int procid, int taskid)
           
 Iterator getProcs()
           
 Iterator getTaskData()
           
 Iterator getTasks()
           
 void removeProc(int procId)
          Remove a proc from the list
 String toString()
           
static StaticPTSet union(StaticPTSet set1, StaticPTSet set2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

set

ProcTasks[] set
Constructor Detail

StaticPTSet

public StaticPTSet(ProcTasks[] proctasks)
Method Detail

getProcs

public Iterator getProcs()

containsTask

public boolean containsTask(int procid,
                            int taskid)
Specified by:
containsTask in interface PTSet

getTasks

public Iterator getTasks()
Specified by:
getTasks in interface PTSet

getTaskData

public Iterator getTaskData()
Specified by:
getTaskData in interface PTSet

toString

public String toString()
Overrides:
toString in class Object

union

public static StaticPTSet union(StaticPTSet set1,
                                StaticPTSet set2)

removeProc

public void removeProc(int procId)
Remove a proc from the list

Specified by:
removeProc in interface PTSet