io.sarl.sre.janus.internal.eventguard
Interface IBehaviorGuardEvaluator
All Superinterfaces:
java.lang.Comparable<T>
All Known Implementing Classes:
ReflectBehaviorGuardEvaluator, PolymorphicBehaviorGuardEvaluator
interface IBehaviorGuardEvaluator
implements java.lang.Comparable<T>
Describes an object that has the ability to receive SARL events, and consequently to evalute the guard associated to a given event and returns the list of behaviors' runnable that must be executed according to the result of the guard evaluation.

The BehaviorGuardEvaluator is comparable in order to be storable into a collection (usually a sorted set) that needs the elements to be comparable.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.12
Property Summary
Modifier and type Property and description
java.lang.Object target
Returns the object instance that is the target of the event evaluation.
Action Summary
Modifier and type Action and description
abstract void evaluateGuard(Object,Collection<E>)
Evaluates the guard associated to the specified event and returns the list of behaviors methods that must be executed.
abstract java.lang.Object getTarget
Returns the object instance that is the target of the event evaluation.
Property Details
target
val target : java.lang.Object
Returns the object instance that is the target of the event evaluation.

This property is an alias for the action: getTarget

Returns:
the object instance that is the target of the event evaluation.
Action Details
evaluateGuard(Object,Collection<E>)
def evaluateGuard(Object,Collection<E>)
Evaluates the guard associated to the specified event and returns the list of behaviors methods that must be executed.
Parameters:
event - the event triggering behaviors
behaviorsMethodsToExecute - the list of behavior methods that will be completed according to the result of the guard evaluation.
getTarget
def getTarget : java.lang.Object
Returns the object instance that is the target of the event evaluation.
Returns:
the object instance that is the target of the event evaluation.