io.sarl.sre.janus.internal.eventguard.polymorphic
Class PolymorphicBehaviorGuardEvaluator
All Superinterfaces:
IBehaviorGuardEvaluator, java.lang.Comparable<T>
class PolymorphicBehaviorGuardEvaluator
extends java.lang.Object
implements IBehaviorGuardEvaluator
Describes an object that has the ability to receive SARL events, and consequently to evaluate 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
org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> filter
IBehaviorGuardEvaluatorReceiver target
Constructor Summary
Constructor and description
new(IBehaviorGuardEvaluatorReceiver,Function1<Param,Result>)
Creates a Subscriber.
Action Summary
Modifier and type Action and description
int compareTo(IBehaviorGuardEvaluator)
boolean equals(Object)
void evaluateGuard(Object,Collection<E>)
org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> getFilter
IBehaviorGuardEvaluatorReceiver getTarget
int hashCode
Property Details
filter
val filter : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>

This property is an alias for the action: getFilter

target
val target : IBehaviorGuardEvaluatorReceiver

This property is an alias for the action: getTarget

Constructor Details
new(IBehaviorGuardEvaluatorReceiver,Function1<Param,Result>)
new(IBehaviorGuardEvaluatorReceiver,Function1<Param,Result>)
Creates a Subscriber.
Parameters:
target - the listener
filter - the filter
Action Details
compareTo(IBehaviorGuardEvaluator)
def compareTo(IBehaviorGuardEvaluator) : int
equals(Object)
def equals(Object) : boolean
evaluateGuard(Object,Collection<E>)
def evaluateGuard(Object,Collection<E>)
getFilter
def getFilter : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>
getTarget
def getTarget : IBehaviorGuardEvaluatorReceiver
hashCode
def hashCode : int