zeus.concepts
Class AbstractTask

java.lang.Object
  extended byzeus.concepts.AbstractTask
Direct Known Subclasses:
ReteKB, Task

public abstract class AbstractTask
extends java.lang.Object

this interface is instantiatied by a number of different types of task, and is used to store user defined parameters and info that are entered into the task at design time using the Zeus Agent Generator tool CHANGE LOG 20/9/02 added a description field to let users put in a description of the task for some use cases; this information is used by the service description system I have added some feilds and client methods to the class to collect service description information, I think that this is the right place to do it because while the Zeus reasoner only looks at plan atoms (primitive tasks) in an open environment the ability to write service descriptions for reactive tasks may be useful, so this interface provides the common root that the two subclasses can inheret the functionality from.


Field Summary
static int BEHAVIOUR
           
private  java.lang.String emailInfo
           
private  java.lang.String faxInfo
           
private  java.lang.String geoInfo
           
protected  java.lang.String name
           
private  java.lang.String phoneInfo
           
private  java.lang.String physicalInfo
           
static int PRIMITIVE
           
private  java.util.List restrictions
           
static int SCRIPT
           
static int SUMMARY
           
(package private) static java.lang.String[] TaskTypes
           
private  java.lang.String textInfo
           
protected  int type
           
 
Constructor Summary
AbstractTask()
           
 
Method Summary
 void addRestriction(java.lang.String fact, java.lang.String attribute, java.lang.String value)
           
abstract  AbstractTask duplicate(DuplicationTable table)
           
 AbstractTask duplicate(java.lang.String name, GenSym genSym)
           
 java.lang.String getEmailInfo()
           
 java.lang.String getFaxInfo()
           
 java.lang.String getGeoInfo()
           
 java.lang.String getName()
           
 java.lang.String getPhoneInfo()
           
 java.lang.String getPhysicalInfo()
           
 java.util.List getRestrictions()
           
 java.lang.String getTextInfo()
           
 int getType()
           
static int getType(java.lang.String typeName)
           
 java.lang.String getTypeName()
           
static java.lang.String getTypeName(int type)
           
 boolean isBehaviour()
           
 boolean isPrimitive()
           
 boolean isScript()
           
 boolean isSummary()
           
abstract  boolean isValid()
           
 java.lang.String pprint()
           
abstract  java.lang.String pprint(int sp)
           
abstract  boolean resolve(Bindings bindings)
           
 void setEmailInfo(java.lang.String in)
           
 void setFaxInfo(java.lang.String in)
           
 void setGeoInfo(java.lang.String in)
           
 void setName(java.lang.String name)
           
 void setPhoneInfo(java.lang.String in)
           
 void setPhysicalInfo(java.lang.String in)
           
 void setTextInfo(java.lang.String in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMITIVE

public static final int PRIMITIVE
See Also:
Constant Field Values

SUMMARY

public static final int SUMMARY
See Also:
Constant Field Values

BEHAVIOUR

public static final int BEHAVIOUR
See Also:
Constant Field Values

SCRIPT

public static final int SCRIPT
See Also:
Constant Field Values

restrictions

private java.util.List restrictions

TaskTypes

static java.lang.String[] TaskTypes

name

protected java.lang.String name

type

protected int type

textInfo

private java.lang.String textInfo

phoneInfo

private java.lang.String phoneInfo

faxInfo

private java.lang.String faxInfo

emailInfo

private java.lang.String emailInfo

physicalInfo

private java.lang.String physicalInfo

geoInfo

private java.lang.String geoInfo
Constructor Detail

AbstractTask

public AbstractTask()
Method Detail

getType

public static int getType(java.lang.String typeName)

getTypeName

public static java.lang.String getTypeName(int type)

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

getType

public int getType()

getTypeName

public java.lang.String getTypeName()

isPrimitive

public boolean isPrimitive()

isSummary

public boolean isSummary()

isBehaviour

public boolean isBehaviour()

isScript

public boolean isScript()

duplicate

public AbstractTask duplicate(java.lang.String name,
                              GenSym genSym)

pprint

public java.lang.String pprint()

duplicate

public abstract AbstractTask duplicate(DuplicationTable table)

isValid

public abstract boolean isValid()

pprint

public abstract java.lang.String pprint(int sp)

resolve

public abstract boolean resolve(Bindings bindings)

setTextInfo

public void setTextInfo(java.lang.String in)

getTextInfo

public java.lang.String getTextInfo()

setPhoneInfo

public void setPhoneInfo(java.lang.String in)

getPhoneInfo

public java.lang.String getPhoneInfo()

setFaxInfo

public void setFaxInfo(java.lang.String in)

getFaxInfo

public java.lang.String getFaxInfo()

setEmailInfo

public void setEmailInfo(java.lang.String in)

getEmailInfo

public java.lang.String getEmailInfo()

setPhysicalInfo

public void setPhysicalInfo(java.lang.String in)

getPhysicalInfo

public java.lang.String getPhysicalInfo()

setGeoInfo

public void setGeoInfo(java.lang.String in)

getGeoInfo

public java.lang.String getGeoInfo()

addRestriction

public void addRestriction(java.lang.String fact,
                           java.lang.String attribute,
                           java.lang.String value)

getRestrictions

public java.util.List getRestrictions()


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