io.sarl.sre.janus.internal.eventguard
Class ReflectBehaviorGuardEvaluator
All Superinterfaces:
IBehaviorGuardEvaluator, java.lang.Comparable<T>
class ReflectBehaviorGuardEvaluator
extends java.lang.Object
implements IBehaviorGuardEvaluator
Describes each class having one of its methods annotated with PerceptGuardEvaluator annotation corresponding to the method in charge of evaluating 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
Property Summary
Modifier and type Property and description
java.lang.reflect.Method method
Returns the method that is invoked to evaluate the guard.
java.lang.Object target
Constructor Summary
Constructor and description
new(Object,Method)
Creates a Subscriber for method on listener.
Action Summary
Modifier and type Action and description
int compareTo(IBehaviorGuardEvaluator)
boolean equals(Object)
void evaluateGuard(Object,Collection<E>)
java.lang.reflect.Method getMethod
Returns the method that is invoked to evaluate the guard.
java.lang.Object getTarget
int hashCode
java.lang.String toString
Property Details
method
val method : java.lang.reflect.Method
Returns the method that is invoked to evaluate the guard.

This property is an alias for the action: getMethod

Returns:
the guard evaluation method.
Since:
0.11
target
val target : java.lang.Object

This property is an alias for the action: getTarget

Constructor Details
new(Object,Method)
new(Object,Method)
Creates a Subscriber for method on listener.
Parameters:
target - the listener
method - the method to call to evaluate a guard
Action Details
compareTo(IBehaviorGuardEvaluator)
def compareTo(IBehaviorGuardEvaluator) : int
Since:
0.11
equals(Object)
def equals(Object) : boolean
evaluateGuard(Object,Collection<E>)
def evaluateGuard(Object,Collection<E>)
getMethod
def getMethod : java.lang.reflect.Method
Returns the method that is invoked to evaluate the guard.
Returns:
the guard evaluation method.
Since:
0.11
getTarget
def getTarget : java.lang.Object
hashCode
def hashCode : int
toString
def toString : java.lang.String