fr.expression4j.core.impl
Class ParametersImpl

java.lang.Object
  extended by fr.expression4j.core.impl.ParametersImpl
All Implemented Interfaces:
Parameters

public class ParametersImpl
extends java.lang.Object
implements Parameters

Implementation of parameters interface.

Author:
SGINER

Constructor Summary
ParametersImpl()
          Construct an empty parameters.
 
Method Summary
 void addParameter(java.lang.String name, MathematicalElement value)
          add a parameter
 void addParameters(java.util.Map parameters)
          add parameters
 void addParameters(Parameters parameters)
          add parameters
 MathematicalElement getParameter(java.lang.String name)
          get parameter value.
 java.util.Map getParameters()
          get the list of parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametersImpl

public ParametersImpl()
Construct an empty parameters.

Method Detail

addParameter

public void addParameter(java.lang.String name,
                         MathematicalElement value)
Description copied from interface: Parameters
add a parameter

Specified by:
addParameter in interface Parameters
Parameters:
name - name of the parameter.
value - value of the parameter.

addParameters

public void addParameters(java.util.Map parameters)
Description copied from interface: Parameters
add parameters

Specified by:
addParameters in interface Parameters
Parameters:
parameters - parameters to add.

addParameters

public void addParameters(Parameters parameters)
Description copied from interface: Parameters
add parameters

Specified by:
addParameters in interface Parameters
Parameters:
parameters - parameters to add.

getParameter

public MathematicalElement getParameter(java.lang.String name)
                                 throws ParametersException
Description copied from interface: Parameters
get parameter value.

Specified by:
getParameter in interface Parameters
Parameters:
name - name of the parameter.
Returns:
the value of the given parameter.
Throws:
ParametersException - if the parameter is not found.

getParameters

public java.util.Map getParameters()
Description copied from interface: Parameters
get the list of parameters

Specified by:
getParameters in interface Parameters
Returns:
list of parameters.