de.cesr.lara.template
Class MyEnvironment

java.lang.Object
  extended by de.cesr.lara.components.environment.impl.LEnvironment
      extended by de.cesr.lara.template.MyEnvironment
All Implemented Interfaces:
LaraEnvironment, LaraSuperEnvironment

public class MyEnvironment
extends LEnvironment

Wrapper for the default environment. Provides methods to increment or decrement a value stored in the environment.


Field Summary
 
Fields inherited from class de.cesr.lara.components.environment.impl.LEnvironment
abstractProperties, allObserver, propertyObserver, subEnvironments
 
Fields inherited from interface de.cesr.lara.components.environment.LaraSuperEnvironment
ALL_CATEGORIES
 
Constructor Summary
MyEnvironment()
           
 
Method Summary
 void decrementProperty(String propertyId, int amount)
          Decrement the value of the property "propertyId" by amount "amount"
 void incrementProperty(String propertyId, int amount)
          Increment the value of the property "propertyId" by amount "amount"
 
Methods inherited from class de.cesr.lara.components.environment.impl.LEnvironment
addEnvListener, addEnvListener, addProperty, containsProperty, containsProperty, getAllListeners, getEnvProperties, getPropertyByName, getSubEnvironments, getSubEnvironments, getTypedPropertyByName, inform, registerEnvironment, removeEnvironment, removeEnvironment, removeEnvListener, removeEnvListener, removeProperty, removeProperty, removePropertySubenv, toString, updateProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyEnvironment

public MyEnvironment()
Method Detail

decrementProperty

public void decrementProperty(String propertyId,
                              int amount)
Decrement the value of the property "propertyId" by amount "amount"

Parameters:
propertyId -
amount -

incrementProperty

public void incrementProperty(String propertyId,
                              int amount)
Increment the value of the property "propertyId" by amount "amount"

Parameters:
propertyId -
amount -