protected static class TransientAgent.NewAgentLispCommand extends CasaLispOperator
OPTIONS
lambdaName
Constructor and Description |
---|
NewAgentLispCommand(String name) |
Modifier and Type | Method and Description |
---|---|
Status |
execute(TransientAgent agent,
ParamsMap params,
AgentUI ui,
Environment env)
Subclasses need to override the method to implement the actual operator.
|
static String |
getCommandSpec() |
private Status |
makeAgentInAnotherProc(TransientAgent agent,
ParamsMap params,
AgentUI ui,
Environment env,
URLDescriptor url) |
private Status |
makeAgentInNewProc(TransientAgent agent,
ParamsMap params) |
private Status |
makeAgentInThisProc(ParamsMap params,
AgentUI ui) |
private String |
readFromProc(Process proc) |
compareTo, execute, getDoc, getDocShort, getName, getSymbolValue, iteratorFor, makeCasaLispOperator, makeSynonym, primName2ClassName, toString
execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getCallCount, getHotCount, incrementCallCount, incrementHotCount, setCallCount, setHotCount, writeToString
getLambdaList, getLambdaName, getParts, setLambdaList, setLambdaName
ABS, add, add, aref_long, aref, AREF, AREF, aset, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, classOf, COMPLEXP, constantp, CONSTANTP, copyToArray, decr, DENOMINATOR, dispatch, divideBy, doubleValue, elt, endp, ENDP, EQ, eql, eql, eql, EQL, equal, equal, EQUAL, equalp, equalp, evenp, EVENP, floatp, FLOATP, floatValue, getBooleanValue, getDescription, getDocumentation, getFixnumSlotValue, getInstance, getPropertyList, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incr, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, multiplyBy, negate, noFillPointer, NOT, nreverse, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, psxhash, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCar, setCdr, setDocumentation, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, setSlotValue, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, typeOf, typep, unreadableString, unreadableString, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, zerop, ZEROP
public NewAgentLispCommand(String name)
public static String getCommandSpec()
public Status execute(TransientAgent agent, ParamsMap params, AgentUI ui, Environment env) throws ControlTransfer
CasaLispOperator
Return | Indicates... |
---|---|
Status(0) | the method was successful, but there is no return value (possibly it printed to ui ); will return NIL |
Status(-ve,"message") | the method failed and the return will be a lisp error object with "message" as its message |
Status(+ve,"warning") | the method was successful with warnings, but there is no return value (possibly it printed to ui ); will return NIL and print the warning to ui |
StatusObject(0,LispObject) | the method was successful, and will directly return object |
Status(+ve,"warning") | the method was successful with warnings, and will return object and print the warning to ui |
execute
in class CasaLispOperator
agent
- The calling agentparams
- The dictionary of all the actual parameter name/value pairs that appear in function call.ui
- The AgentUI object that this method may use for input and outputenv
- The Lisp environment to use for this execution -- you can use this to instantiate symbols, etc in the context of Lisp execution.ControlTransfer
private Status makeAgentInAnotherProc(TransientAgent agent, ParamsMap params, AgentUI ui, Environment env, URLDescriptor url)
private Status makeAgentInNewProc(TransientAgent agent, ParamsMap params)