zeus.concepts
Class AbstractTask
java.lang.Object
zeus.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractTask
public AbstractTask()
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.