io.sarl.lang.core
Interface Scope<T>
Type Parameters:
T - is the type of objects that should be matched by this scope.
All Superinterfaces:
java.io.Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
@java.lang.FunctionalInterface
interface Scope<T>
implements java.io.Serializable
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.
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