Class ELScalar

java.lang.Object
  |
  +--AbstractELExpression
        |
        +--ELScalar
All Implemented Interfaces:
java.lang.Cloneable, ELExpression

public class ELScalar
extends AbstractELExpression
implements ELExpression

A scalar expression. ELScalar := -1 <= x e Reals <= 1


Field Summary
(package private)  float value
           
 
Constructor Summary
ELScalar()
           
ELScalar(double value)
           
 
Method Summary
 java.lang.Object clone()
           
 void evaluate(ELMatrix out, ELEnvironment environment)
          Evaluates this expression.
 ELExpression geneticClone(ELCall parent, GeneticParameters gp)
          Clones, possibly mutating.
 java.lang.String toString()
           
 java.lang.String unparse()
          Generates an EL language source string sufficient to uniquely identify this expression.
 
Methods inherited from class AbstractELExpression
cloneSiblingMutation, cloneWithChildMutations, cloneWithReplacement, encloseInNewCallMutation, getNestedSubexpression, hasExternalInfluences, numNestedSubexpressions, randomNestedSubexpression, sameExpression
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ELExpression
cloneWithReplacement, getNestedSubexpression, hasExternalInfluences, numNestedSubexpressions, randomNestedSubexpression, sameExpression
 

Field Detail

value

float value
Constructor Detail

ELScalar

public ELScalar()

ELScalar

public ELScalar(double value)
Method Detail

geneticClone

public ELExpression geneticClone(ELCall parent,
                                 GeneticParameters gp)
Description copied from interface: ELExpression
Clones, possibly mutating. The operators will be shared between clones but no ELExpressions will be shared.
Specified by:
geneticClone in interface ELExpression
Following copied from interface: ELExpression
Parameters:
parent - Parent expression from previous generation. don't point at or mutate this; it is provided so you can get access to siblings. May be null if there is no parent (i.e. top-level expression).

clone

public java.lang.Object clone()
Specified by:
clone in interface ELExpression
Overrides:
clone in class AbstractELExpression

unparse

public java.lang.String unparse()
Description copied from interface: ELExpression
Generates an EL language source string sufficient to uniquely identify this expression.
Specified by:
unparse in interface ELExpression

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

evaluate

public void evaluate(ELMatrix out,
                     ELEnvironment environment)
Description copied from interface: ELExpression
Evaluates this expression.
Specified by:
evaluate in interface ELExpression