Defines the scope of an Event. Scopes are specialized based on the addressing mechanism internally used by a Space.
A scope is a predicate used to filter the potentially called listeners for a given event. The most basic Scope is represented by a collection of Addresses (Agent, Role, etc.
Parameters:
<T> - is the type of objects that should be matched by this scope.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Action Summary
Modifier and type
Action and description
abstract boolean
matches(T)
Checks whether the element is included in this scope.
Modifier and type
Action and description
abstract boolean
matches(T)
Checks whether the element is included in this scope.
Action Details
matches(T)
def matches(T) : boolean
Checks whether the element is included in this scope.
Parameters:
element - the element to test. It must NOT BE NULL.
Returns:
true if the element is inside the scope, false otherwise