Package org.esa.snap.core.dataop.barithm
Class RasterDataSymbol
java.lang.Object
org.esa.snap.core.dataop.barithm.RasterDataSymbol
- Direct Known Subclasses:
SingleFlagSymbol
Represents a read-only symbol. A symbol can be a named constant or variable.
It has a return type an can be evaluated. This class is based on RasterData.
Within an expression, a reference to a symbol is created if the parser
encounters a name and this name can be resolved through the parser's current namespace.
The resulting term in this case is an instance of .Term.Ref
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLists possible source image types. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProductDatastatic final RasterDataSymbol.Sourcestatic final RasterDataSymbol.Source -
Constructor Summary
ConstructorsConstructorDescriptionRasterDataSymbol(String symbolName, Mask mask) RasterDataSymbol(String symbolName, RasterDataNode raster, RasterDataSymbol.Source source) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanEvaluates this symbol to abooleanvalue.doubleEvaluates this symbol to adoublevalue.intEvaluates this symbol to anintvalue.Evaluates this symbol to aStringvalue.getName()Gets the symbol's name.intGets the symbol's return type.booleanisConst()void
-
Field Details
-
RAW
-
GEOPHYSICAL
-
data
-
-
Constructor Details
-
RasterDataSymbol
-
RasterDataSymbol
-
-
Method Details
-
getName
Description copied from interface:SymbolGets the symbol's name. -
getRetType
public int getRetType()Description copied from interface:SymbolGets the symbol's return type.- Specified by:
getRetTypein interfaceSymbol- Returns:
- the type, should always be one of the
TYPE_X constants defined in theTermclass.
-
isConst
public boolean isConst() -
getSource
- Returns:
- The source image type.
- Since:
- BEAM 4.7
-
getRaster
-
setData
-
evalB
Description copied from interface:SymbolEvaluates this symbol to abooleanvalue.- Specified by:
evalBin interfaceSymbol- Parameters:
env- the application dependant environment.- Returns:
- a
booleanvalue - Throws:
EvalException- if the evaluation fails
-
evalI
Description copied from interface:SymbolEvaluates this symbol to anintvalue.- Specified by:
evalIin interfaceSymbol- Parameters:
env- the application dependant environment.- Returns:
- an
intvalue - Throws:
EvalException- if the evaluation fails
-
evalD
Description copied from interface:SymbolEvaluates this symbol to adoublevalue.- Specified by:
evalDin interfaceSymbol- Parameters:
env- the application dependant environment.- Returns:
- a
doublevalue - Throws:
EvalException- if the evaluation fails
-
evalS
Description copied from interface:SymbolEvaluates this symbol to aStringvalue.- Specified by:
evalSin interfaceSymbol- Parameters:
env- the application dependant environment.- Returns:
- a
doublevalue - Throws:
EvalException- if the evaluation fails
-
clone
-