|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<T>
repast.simphony.context.AbstractContext<T>
repast.simphony.context.SmallDefaultContext<T>
repast.simphony.context.DefaultContext<T>
de.cesr.lara.toolbox.adapter.rs.context.LEnvironmentContext<T>
public class LEnvironmentContext<T>
| Field Summary |
|---|
| Fields inherited from class repast.simphony.context.SmallDefaultContext |
|---|
allObjs, objectMap |
| Fields inherited from class repast.simphony.context.AbstractContext |
|---|
subContexts |
| Fields inherited from interface repast.simphony.context.Context |
|---|
SYN_CONTEXT_PREFIX |
| Constructor Summary | |
|---|---|
LEnvironmentContext()
|
|
LEnvironmentContext(String id)
|
|
| Method Summary | ||
|---|---|---|
void |
addEnvListener(LaraEnvironmentListener listener)
Adds an LaraEnvironmentListener to the entire
LaraEnvironment. |
|
void |
addEnvListener(LaraEnvironmentListener listener,
String name)
Registers a LaraEnvironmentListener at this environment to
observe only a certain property. |
|
void |
addProperty(LAbstractEnvironmentalProperty<?> property)
Adds a property in case it does not yet exist or updates it otherwise. |
|
boolean |
containsProperty(LAbstractEnvironmentalProperty<?> property)
Checks whether a property is in the list or not. |
|
boolean |
containsProperty(String name)
Checks whether a property name is in the environment or not. |
|
Set<LaraEnvironmentListener> |
getAllListeners()
Returns a set of all listeners - those that are registered at all properties and those registered at certain properties. |
|
Collection<LAbstractEnvironmentalProperty<?>> |
getEnvProperties()
Returns a Collection of all
LAbstractEnvironmentalPropertys of this environment. |
|
LAbstractEnvironmentalProperty<?> |
getPropertyByName(String name)
|
|
|
getTypedPropertyByName(String name)
|
|
boolean |
removeEnvListener(LaraEnvironmentListener listener)
Remove a LaraEnvironmentListener from the entire
LaraEnvironment. |
|
void |
removeEnvListener(LaraEnvironmentListener listener,
String name)
Removes a LaraEnvironmentListener at this environment from the
given property. |
|
boolean |
removeProperty(LAbstractEnvironmentalProperty<?> property)
Removes a property if it is contained in the environment's list. |
|
boolean |
removeProperty(String name)
Removes a property if it is contained in the environment's list. |
|
void |
updateProperty(LAbstractEnvironmentalProperty<?> property)
Changes an existing property or adds it in case it does not yet exist. |
|
| Methods inherited from class repast.simphony.context.DefaultContext |
|---|
addInternal, containsInternal, iteratorInternal, removeInternal, sizeInternal |
| Methods inherited from class repast.simphony.context.SmallDefaultContext |
|---|
getObjects, getRandomObject, getRandomObjects |
| Methods inherited from class repast.simphony.context.AbstractContext |
|---|
add, addContextListener, addProjection, addSubContext, addValueLayer, clear, contains, eventOccured, findContext, findParent, fireAddContextEvent, fireRemoveEvent, fireSubContextAdded, fireSubContextRemoved, getAgentLayer, getAgentTypes, getContextListeners, getId, getProjection, getProjection, getProjections, getProjections, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, handleRemove, iterator, query, remove, removeContextListener, removeProjection, removeSubContext, removeValueLayer, setId, setTypeID, size |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface repast.simphony.context.Context |
|---|
addContextListener, addProjection, addSubContext, addValueLayer, findContext, findParent, getAgentLayer, getAgentTypes, getContextListeners, getObjects, getProjection, getProjection, getProjections, getProjections, getRandomObject, getRandomObjects, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, query, removeContextListener, removeProjection, removeSubContext, removeValueLayer, setTypeID |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface repast.simphony.context.RepastElement |
|---|
getId, setId |
| Constructor Detail |
|---|
public LEnvironmentContext()
public LEnvironmentContext(String id)
| Method Detail |
|---|
public void addEnvListener(LaraEnvironmentListener listener)
LaraEnvironmentLaraEnvironmentListener to the entire
LaraEnvironment.
addEnvListener in interface LaraEnvironmentlistener - listener to add.
public void addEnvListener(LaraEnvironmentListener listener,
String name)
LaraEnvironmentLaraEnvironmentListener at this environment to
observe only a certain property.
addEnvListener in interface LaraEnvironmentlistener - the observer to registername - name of property to observepublic void addProperty(LAbstractEnvironmentalProperty<?> property)
LaraEnvironment
addProperty in interface LaraEnvironmentproperty - property to addpublic boolean containsProperty(LAbstractEnvironmentalProperty<?> property)
LaraEnvironment
containsProperty in interface LaraEnvironmentproperty - property to check
public boolean containsProperty(String name)
LaraEnvironment
containsProperty in interface LaraEnvironmentname - name of property to check
public Set<LaraEnvironmentListener> getAllListeners()
LaraEnvironment
getAllListeners in interface LaraEnvironmentpublic Collection<LAbstractEnvironmentalProperty<?>> getEnvProperties()
LaraEnvironmentCollection of all
LAbstractEnvironmentalPropertys of this environment.
getEnvProperties in interface LaraEnvironmentLAbstractEnvironmentalPropertys stored
by this LaraEnvironmentpublic LAbstractEnvironmentalProperty<?> getPropertyByName(String name)
getPropertyByName in interface LaraEnvironmentname - the LAbstractEnvironmentalProperty's name
public <V> LAbstractEnvironmentalProperty<V> getTypedPropertyByName(String name)
getTypedPropertyByName in interface LaraEnvironmentV - type of requested propertyname - the LAbstractEnvironmentalProperty's name
public boolean removeEnvListener(LaraEnvironmentListener listener)
LaraEnvironmentLaraEnvironmentListener from the entire
LaraEnvironment. This does not impact listeners that are
registered at certain properties!
removeEnvListener in interface LaraEnvironmentlistener - listener to remove.
public void removeEnvListener(LaraEnvironmentListener listener,
String name)
LaraEnvironmentLaraEnvironmentListener at this environment from the
given property. This does not impact possibly same listeners that are
registered at the whole Environment.
removeEnvListener in interface LaraEnvironmentlistener - the observer to registername - name of observed propertypublic boolean removeProperty(LAbstractEnvironmentalProperty<?> property)
LaraEnvironment
removeProperty in interface LaraEnvironmentproperty - property to remove
public boolean removeProperty(String name)
LaraEnvironment
removeProperty in interface LaraEnvironmentname - name of property to remove
public void updateProperty(LAbstractEnvironmentalProperty<?> property)
LaraEnvironment
updateProperty in interface LaraEnvironmentproperty - property to update or add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||