zeus.actors
Class DataRec

java.lang.Object
  extended byzeus.actors.DataRec
All Implemented Interfaces:
java.util.Observer

public class DataRec
extends java.lang.Object
implements java.util.Observer


Field Summary
protected  java.util.Vector available
           
protected  Fact fact
           
protected  boolean isNegative
           
protected  int nAvailable
           
protected  int position
           
protected  PlanRecord record
           
 
Constructor Summary
DataRec()
           
DataRec(Fact fact)
           
DataRec(Fact fact, PlanRecord record, int precond_position)
           
 
Method Summary
 boolean add(ResourceItem item, int start, int num)
           
 java.util.Vector available()
           
 boolean contains(ResourceItem item)
           
 boolean executeNow(ResourceDb db, int now)
           
 void free()
           
 double getCost()
           
 Fact[] getData()
           
 Fact getFact()
           
 java.lang.String getId()
           
 int getPosition()
           
 PlanRecord getRecord()
           
 Fact mostGeneralDescriptor()
           
 int nAvailable()
           
 void newStartTime(int start)
           
protected  int remove(ResourceItem item)
           
 DataRec subtract(PlanRecord rec, int position, int required)
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nAvailable

protected int nAvailable

fact

protected Fact fact

record

protected PlanRecord record

position

protected int position

available

protected java.util.Vector available

isNegative

protected boolean isNegative
Constructor Detail

DataRec

public DataRec()

DataRec

public DataRec(Fact fact,
               PlanRecord record,
               int precond_position)

DataRec

public DataRec(Fact fact)
Method Detail

add

public boolean add(ResourceItem item,
                   int start,
                   int num)

free

public void free()

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

executeNow

public boolean executeNow(ResourceDb db,
                          int now)

newStartTime

public void newStartTime(int start)

subtract

public DataRec subtract(PlanRecord rec,
                        int position,
                        int required)

contains

public boolean contains(ResourceItem item)

remove

protected int remove(ResourceItem item)

getPosition

public int getPosition()

getRecord

public PlanRecord getRecord()

getId

public java.lang.String getId()

available

public java.util.Vector available()

nAvailable

public int nAvailable()

getFact

public Fact getFact()

getCost

public double getCost()

getData

public Fact[] getData()

mostGeneralDescriptor

public Fact mostGeneralDescriptor()


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.