static class EventDescriptor.EventDescriptorLispOperator extends CasaLispOperator
lambdaName
Constructor and Description |
---|
EventDescriptorLispOperator(String name,
String arglist,
Class<? extends TransientAgent> agentClass,
String... synonyms)
constructor for the event descriptor
|
Modifier and Type | Method and Description |
---|---|
Status |
execute(TransientAgent agent,
ParamsMap params,
AgentUI ui,
Environment env)
the execute command
|
protected String |
getLispFunctionName() |
protected String |
getMGT()
a function that returns an ML.EVENT (the most general type)
|
protected EventDescriptor |
makeNew(PolicyAgentInterface agent,
String type,
Pair<String,Object>[] pairs)
a function that makes returns new EventDescriptor out of the parameters
|
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 EventDescriptorLispOperator(String name, String arglist, Class<? extends TransientAgent> agentClass, String... synonyms)
name
- arglist
- agentClass
- synonyms
- public Status execute(TransientAgent agent, ParamsMap params, AgentUI ui, Environment env)
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.CasaLispOperator.execute(TransientAgent,ParamsMap,AgentUI,Environment)
protected String getMGT()
protected EventDescriptor makeNew(PolicyAgentInterface agent, String type, Pair<String,Object>[] pairs)
agent
- a PolicyAgentInterface (can be 0)type
- the type of the event being describedpairs
- the key-object pairs associated with the eventprotected String getLispFunctionName()