com.banda.function.domain
Class Expression<IN,OUT>

java.lang.Object
  extended by com.banda.core.domain.DomainObject<Long>
      extended by com.banda.core.domain.TechnicalDomainObject
          extended by com.banda.function.domain.AbstractFunction<IN,OUT>
              extended by com.banda.function.domain.Expression<IN,OUT>
All Implemented Interfaces:
KeyHolder<Long>, Function<IN,OUT>, Serializable

public class Expression<IN,OUT>
extends AbstractFunction<IN,OUT>

Since:
2012
Author:
© Peter Banda
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.banda.core.domain.DomainObject
DomainObject.DomainObjectKeyComparator<K extends Serializable & Comparable<K>>
 
Constructor Summary
Expression()
           
Expression(String formula)
           
Expression(String formula, Class<IN> inputClazz, Class<OUT> outputClazz)
           
 
Method Summary
static Expression<Double,Double> Double(String formula)
           
 String getFormula()
           
 Set<Integer> getReferencedVariableIndeces()
           
 Set<String> getReferencedVariables()
           
static void main(String[] args)
           
 void setFormula(String formula)
           
 String toString()
           
 
Methods inherited from class com.banda.function.domain.AbstractFunction
getArity, getInputClazz, getInputClazzName, getOutputClazz, getOutputClazzName, setArity, setInputClazz, setInputClazzName, setOutputClazz, setOutputClazzName
 
Methods inherited from class com.banda.core.domain.TechnicalDomainObject
getId, getKey, getVersion, setId, setKey, setVersion
 
Methods inherited from class com.banda.core.domain.DomainObject
copyFrom, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.banda.core.domain.KeyHolder
getKey, setKey
 

Constructor Detail

Expression

public Expression()

Expression

public Expression(String formula)

Expression

public Expression(String formula,
                  Class<IN> inputClazz,
                  Class<OUT> outputClazz)
Method Detail

setFormula

public void setFormula(String formula)

getFormula

public String getFormula()

getReferencedVariables

public Set<String> getReferencedVariables()
Specified by:
getReferencedVariables in interface Function<IN,OUT>
Overrides:
getReferencedVariables in class AbstractFunction<IN,OUT>

getReferencedVariableIndeces

public Set<Integer> getReferencedVariableIndeces()
Specified by:
getReferencedVariableIndeces in interface Function<IN,OUT>
Overrides:
getReferencedVariableIndeces in class AbstractFunction<IN,OUT>

Double

public static Expression<Double,Double> Double(String formula)

toString

public String toString()
Overrides:
toString in class DomainObject<Long>
See Also:
Object.toString()

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.