de.cesr.lara.template
Class MyEnvironment
java.lang.Object
de.cesr.lara.components.environment.impl.LEnvironment
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.
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 |
MyEnvironment
public MyEnvironment()
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
-