|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BehaviourIF
The BehaviourIF
class is the interface representing both behaviour frames and instances.
Method Summary | |
---|---|
void |
addOrSetAction(ActionIF action)
Adds or updates an action of this behaviour. |
void |
addOrSetRLActionNode(RLActionNodeIF node)
Adds or updates an RLActionNodeIF of this behaviour. |
void |
addOrSetRule(RuleIF rule)
Adds or sets a RuleIF of this behaviour |
ActionIF |
createAction(java.lang.String name,
java.lang.String cls)
Creates an action. |
RLActionNodeIF |
createRLActionNode(java.lang.String name)
Creates an RLActionNodeIF . |
RuleIF |
createRule(java.lang.String name)
Creates a RuleIF . |
ActionIF |
getAction(java.lang.String name)
Gets the ActionIF with the specified name. |
ActionIF[] |
getAvailableActions()
Gets all ActionIF 's of this behaviour. |
int |
getMaxNodes()
Gets the maximum possible number of nodes that the BRA process can expand. |
double |
getRevaluationProb()
Gets the probability with which existing BRA paths become re-activated. |
double |
getRevisitCostFraction()
Gets the cost (zeta) that is used by BRA to determine whether a state successor should be expanded or not. |
RLActionNodeIF |
getRLActionNode(java.lang.String name)
Get an RLActionNodeIF with the specified name. |
RLActionNodeIF[] |
getRLActionNodes()
Gets all RLActionNodeIF 's associated with this behaviour. |
RuleIF |
getRule(java.lang.String name)
Gets the RuleIF with the specified name. |
RuleIF[] |
getRules()
Gets all RuleIF 's associated with this behaviour. |
int |
getUpdateInterval()
Gets the interval m with which nodes in the BRA process are updated. |
boolean |
isDeclaredRLNode(java.lang.String nodeName)
Checks whether the RLActionNodeIF with the specified name was declared in this level of the inheritance hierarchy. |
boolean |
isDeclaredRule(java.lang.String ruleName)
Checks whether the RuleIF with the specified name was declared in this level of the inheritance hierarchy. |
void |
removeRLActionNode(java.lang.String name)
Removes the RLActionNodeIF with the specified name from this behaviour. |
void |
removeRule(java.lang.String name)
Removes the RuleIF with the specified name from this behaviour. |
void |
setMaxNodes(int n)
Sets the maximum number of nodes that BRA is allowed to expand. |
void |
setRevaluationProb(double p)
Sets the probability with which existing BRA paths become re-activated. |
void |
setRevisitCostFraction(double c)
Sets the cost (zeta), 0 < cost < 1, that is used by BRA to determine whether a state successor should be expanded or not. |
void |
setUpdateInterval(int n)
Set the interval (timesteps) at which BRA evaluates new expansions (Note: Because of hardcoded delete cycle, this will also affect when nodes become deleted). |
Method Detail |
---|
void addOrSetAction(ActionIF action) throws GSimObjectException
action
- the action
GSimObjectException
void addOrSetRLActionNode(RLActionNodeIF node) throws GSimObjectException
RLActionNodeIF
of this behaviour.
node
- the RLNode
GSimObjectException
void addOrSetRule(RuleIF rule) throws GSimObjectException
RuleIF
of this behaviour
rule
- the rule
GSimObjectException
ActionIF createAction(java.lang.String name, java.lang.String cls) throws GSimObjectException
name
- name of the actioncls
- fully qualified name of the java class that should be executed when the action gets activated
GSimObjectException
RLActionNodeIF createRLActionNode(java.lang.String name) throws GSimObjectException
RLActionNodeIF
.
name
-
GSimObjectException
RuleIF createRule(java.lang.String name) throws GSimObjectException
RuleIF
.
name
-
GSimObjectException
ActionIF getAction(java.lang.String name) throws GSimObjectException
ActionIF
with the specified name.
name
- name of the action
GSimObjectException
ActionIF[] getAvailableActions() throws GSimObjectException
ActionIF
's of this behaviour.
GSimObjectException
int getMaxNodes() throws GSimObjectException
GSimObjectException
double getRevaluationProb() throws GSimObjectException
GSimObjectException
double getRevisitCostFraction() throws GSimObjectException
GSimObjectException
RLActionNodeIF getRLActionNode(java.lang.String name) throws GSimObjectException
RLActionNodeIF
with the specified name.
name
- the name of the node
GSimObjectException
RLActionNodeIF[] getRLActionNodes() throws GSimObjectException
RLActionNodeIF
's associated with this behaviour.
GSimObjectException
RuleIF getRule(java.lang.String name) throws GSimObjectException
RuleIF
with the specified name.
name
-
GSimObjectException
RuleIF[] getRules() throws GSimObjectException
RuleIF
's associated with this behaviour.
GSimObjectException
int getUpdateInterval() throws GSimObjectException
GSimObjectException
boolean isDeclaredRLNode(java.lang.String nodeName) throws GSimObjectException
RLActionNodeIF
with the specified name was declared in this level of the inheritance hierarchy.
nodeName
- the name of the node
GSimObjectException
boolean isDeclaredRule(java.lang.String ruleName) throws GSimObjectException
RuleIF
with the specified name was declared in this level of the inheritance hierarchy.
ruleName
-
GSimObjectException
void removeRLActionNode(java.lang.String name) throws GSimObjectException
RLActionNodeIF
with the specified name from this behaviour.
name
- the name of the node
GSimObjectException
void removeRule(java.lang.String name) throws GSimObjectException
RuleIF
with the specified name from this behaviour.
name
- then name of the rule
GSimObjectException
void setMaxNodes(int n) throws GSimObjectException
n
- the maximum number of nodes
GSimObjectException
void setRevaluationProb(double p) throws GSimObjectException
p
- the probability
GSimObjectException
void setRevisitCostFraction(double c) throws GSimObjectException
c
- the cost parameter
GSimObjectException
void setUpdateInterval(int n) throws GSimObjectException
n
- the interval
GSimObjectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |