|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
lij.runtime.AgentInstance
public class AgentInstance
A runtime instance of an Agent definition. Each Agent runs in its own thread.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private ConstraintImplementor |
constraintImplementor
|
private ClauseInstance |
currentClauseInstance
|
private java.io.Serializable |
id
|
private Interpreter |
interpreter
|
private Term |
roleType
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AgentInstance(Term _roleType,
java.io.Serializable _id,
ConstraintImplementor _constraintImplementor,
Interpreter _interpreter)
Constructor. |
Method Summary | |
---|---|
ClauseInstanceReturns |
executeClauseInstance(ClauseInstance clauseInstance)
This method will cause this AgentInstance to execute the specified ClauseInstance. |
ConstraintImplementor |
getConstraintImplementor()
Accessor. |
ClauseInstance |
getCurrentClauseInstance()
Accessor. |
java.io.Serializable |
getCurrentID()
Returns the ID of the agent encapsulated in this AgentInstance. |
Term |
getCurrentType()
Returns the role Term of the agent encapsulated in this AgentInstance. |
void |
run()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Term roleType
private java.io.Serializable id
private ConstraintImplementor constraintImplementor
private Interpreter interpreter
private ClauseInstance currentClauseInstance
Constructor Detail |
---|
public AgentInstance(Term _roleType, java.io.Serializable _id, ConstraintImplementor _constraintImplementor, Interpreter _interpreter)
_roleType
- The agent's role type._id
- The agent's ID._constraintImplementor
- The associated ConstraintImplementor
instance._interpreter
- A reference to the currently running Interpreter
instance.Method Detail |
---|
public ConstraintImplementor getConstraintImplementor()
public java.io.Serializable getCurrentID()
public Term getCurrentType()
public ClauseInstance getCurrentClauseInstance()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public ClauseInstanceReturns executeClauseInstance(ClauseInstance clauseInstance) throws InterpreterException
clauseInstance
- The ClauseInstance to execute.
InterpreterException
public java.lang.String toString()
toString
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |