ix.icore
Class TaskItem

java.lang.Object
  |
  +--ix.icore.AbstractIXObject
        |
        +--ix.icore.TaskItem
All Implemented Interfaces:
Annotated, java.lang.Cloneable, IXObject, Sendable, java.io.Serializable
Direct Known Subclasses:
Activity, Issue

public abstract class TaskItem
extends AbstractIXObject
implements java.io.Serializable, java.lang.Cloneable, Sendable

Something an agent might be asked to do or to handle. Essentially this class is just to hold what Issues and Activities have in common, which at this level is almost everything.

See Also:
Serialized Form

Field Summary
protected  Name id
           
protected  LList pattern
           
protected  java.util.Set patternVars
           
protected  Priority priority
           
protected  Name ref
           
protected  YesNo reportBack
           
protected  Name senderId
           
protected  java.lang.String shortDescription
           
protected  Status status
           
 
Fields inherited from class ix.icore.AbstractIXObject
annotations
 
Constructor Summary
protected TaskItem()
           
protected TaskItem(LList pattern)
           
 
Method Summary
 java.lang.Object clone()
           
 void forwardTo(java.lang.Object destination, boolean reportBack)
          Sends a copy of this item to another agent, optionally asking the destination agent to send reports back.
abstract  Name generateId()
           
 Name getId()
           
 LList getParameters()
           
 LList getPattern()
           
 java.util.Set getPatternVars()
           
 Priority getPriority()
           
 Name getRef()
           
 YesNo getReportBack()
           
 Name getSenderId()
           
 java.lang.String getShortDescription()
           
 Status getStatus()
           
 java.util.Set getUnboundVars()
           
 java.lang.Object getVerb()
           
 void setPattern(LList pattern)
           
 void setPriority(Priority priority)
           
 void setRef(Name ref)
           
 void setReportBack(YesNo rep)
           
 void setSenderId(Name id)
           
 void setStatus(Status status)
           
 
Methods inherited from class ix.icore.AbstractIXObject
getAnnotation, getAnnotations, setAnnotation, setAnnotations
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

protected LList pattern

status

protected Status status

priority

protected Priority priority

id

protected Name id

senderId

protected Name senderId

ref

protected Name ref

reportBack

protected YesNo reportBack

shortDescription

protected java.lang.String shortDescription

patternVars

protected java.util.Set patternVars
Constructor Detail

TaskItem

protected TaskItem()

TaskItem

protected TaskItem(LList pattern)
Method Detail

getPattern

public LList getPattern()

setPattern

public void setPattern(LList pattern)

getVerb

public java.lang.Object getVerb()

getParameters

public LList getParameters()

getShortDescription

public java.lang.String getShortDescription()

getPatternVars

public java.util.Set getPatternVars()

getUnboundVars

public java.util.Set getUnboundVars()

getId

public Name getId()

generateId

public abstract Name generateId()

getStatus

public Status getStatus()

setStatus

public void setStatus(Status status)

getPriority

public Priority getPriority()

setPriority

public void setPriority(Priority priority)

getSenderId

public Name getSenderId()
Specified by:
getSenderId in interface Sendable

setSenderId

public void setSenderId(Name id)
Specified by:
setSenderId in interface Sendable

getRef

public Name getRef()

setRef

public void setRef(Name ref)

getReportBack

public YesNo getReportBack()

setReportBack

public void setReportBack(YesNo rep)

forwardTo

public void forwardTo(java.lang.Object destination,
                      boolean reportBack)
Sends a copy of this item to another agent, optionally asking the destination agent to send reports back.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Sendable
Overrides:
clone in class java.lang.Object