public class MindAction
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
name |
the name/identifier of the action
|
protected java.util.List<java.lang.String> |
parameters |
the parameters of this action
|
protected java.lang.String |
subject |
the name/identifier of the agent/ user who has performed this action
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
MindAction() |
protected constructor for subclasses to use
|
|
MindAction(java.lang.String subject,
java.lang.String name,
java.util.List<java.lang.String> parameters) |
create a new mind action with the specified name and parameters, if the action has
no parameters, the second parameter of this constructor may be null
|
|
MindAction(org.w3c.dom.Node domNode) |
create a mindAction from a DOM Node (used when parsing rules file)
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
compareMatch(MindAction matchAction) |
compares whether this mindAction (part of a rule with "*" allowed as name or parameter) produces
a match with the mind action that is passed to this function.
|
boolean |
equals(java.lang.Object other) |
override equals to allow comparisons between 2 mind actions
|
java.util.HashMap<java.lang.String,java.lang.String> |
getMappings() |
returns the name, subject and parameters of this action in a map, indexed by "$subject" "$action" "$parameter1", "$parameter2", etc
|
java.lang.String |
getName() |
returns the name/identifier of this action
|
java.util.List<java.lang.String> |
getParameters() |
returns the parameters of this action
|
java.lang.String |
getSubject() |
returns the name/identifier of the agent/ user who has performed this action
|
int |
hashCode() |
define hash code for mind actions
|
java.lang.String |
toString() |
returns a textual representation of this mind action
|
protected java.lang.String name
protected java.lang.String subject
protected java.util.List<java.lang.String> parameters
public MindAction(java.lang.String subject,
java.lang.String name,
java.util.List<java.lang.String> parameters)
protected MindAction()
public MindAction(org.w3c.dom.Node domNode)
throws java.lang.Exception
java.lang.Exceptionpublic boolean compareMatch(MindAction matchAction)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getSubject()
public java.util.List<java.lang.String> getParameters()
public java.util.HashMap<java.lang.String,java.lang.String> getMappings()
public java.lang.String toString()
toString in class java.lang.Object