etomica.modifier
Interface Modifier

All Known Implementing Classes:
ModifierFunctionWrapper, ModifierGeneral, ModifierNMolecule, SWMD3D.MyModifier

public interface Modifier

A Modifier object permits changes to be made to a property of another object. The target property or object may be unknown to the object that is using the modifier. For example, a modifier may be constructed to adjust a certain property, and then the modifier can be passed to a generic Device, thereby connecting the device to the property.


Method Summary
 Dimension getDimension()
          Returns the dimension of the property being modified.
 String getLabel()
          Returns a descriptive label of the property being modified.
 double getValue()
          Gets the current value of the property.
 void setValue(double newValue)
          Sets the value of the property.
 

Method Detail

setValue

void setValue(double newValue)
Sets the value of the property.


getValue

double getValue()
Gets the current value of the property.

Returns:

getDimension

Dimension getDimension()
Returns the dimension of the property being modified.


getLabel

String getLabel()
Returns a descriptive label of the property being modified.