io.sarl.api.core.spaces
Interface SpaceComponentFactory
All Known Implementing Classes:
DefaultSpaceComponentFactory
@org.eclipse.xtext.xbase.lib.XbaseGenerated
interface SpaceComponentFactory
Factory provided by the SRE for creating the components of a space.

SRE could provide a specific implementation of data structures with or without computer network support.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.core
Since:
0.15
Action Summary
Modifier and type Action and description
abstract ConcurrentList<T> createList
Create a list that could be used by the SRE.
abstract java.util.concurrent.ConcurrentMap<K,V> createMap([Comparator<T>])
Create a map that could be used by the SRE.
abstract ConcurrentSet<T> createSet([Comparator<T>])
Create a set that could be used by the SRE.
Action Details
createList
def createList : ConcurrentList<T>

with E

Create a list that could be used by the SRE.
Parameters:
<E> - the type of the elements in the list.
Returns:
the created list; never null .
createMap([Comparator<T>])
def createMap([Comparator<T>]) : java.util.concurrent.ConcurrentMap<K,V>

with K, V

Create a map that could be used by the SRE.
Parameters:
<K> - the type of the keys in the map.
<V> - the type of the values in the map.
comparator - the comparator to be used for comparing the keys.
Returns:
the created map; never null .
createSet([Comparator<T>])
def createSet([Comparator<T>]) : ConcurrentSet<T>

with E

Create a set that could be used by the SRE.
Parameters:
<E> - the type of the elements in the set.
comparator - the comparator to be used for comparing the set elements.
Returns:
the created set; never null .