|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.dataop.barithm.RasterDataSymbol
public class RasterDataSymbol
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 | |
|---|---|
static class |
RasterDataSymbol.Source
Lists possible source image types. |
| Field Summary | |
|---|---|
protected ProductData |
data
|
static RasterDataSymbol.Source |
GEOPHYSICAL
|
static RasterDataSymbol.Source |
RAW
|
| Constructor Summary | |
|---|---|
RasterDataSymbol(String symbolName,
Mask mask)
|
|
RasterDataSymbol(String symbolName,
RasterDataNode raster,
RasterDataSymbol.Source source)
|
|
| Method Summary | |
|---|---|
boolean |
evalB(EvalEnv env)
Evaluates this symbol to a boolean value. |
double |
evalD(EvalEnv env)
Evaluates this symbol to a double value. |
int |
evalI(EvalEnv env)
Evaluates this symbol to an int value. |
String |
evalS(EvalEnv env)
Evaluates this symbol to a String value. |
String |
getName()
Gets the symbol's name. |
RasterDataNode |
getRaster()
|
int |
getRetType()
Gets the symbol's return type. |
RasterDataSymbol.Source |
getSource()
|
void |
setData(Object data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RasterDataSymbol.Source RAW
public static final RasterDataSymbol.Source GEOPHYSICAL
protected ProductData data
| Constructor Detail |
|---|
public RasterDataSymbol(String symbolName,
Mask mask)
public RasterDataSymbol(String symbolName,
RasterDataNode raster,
RasterDataSymbol.Source source)
| Method Detail |
|---|
public String getName()
Symbol
getName in interface Symbolnullpublic int getRetType()
Symbol
getRetType in interface SymbolTYPE_X constants
defined in the Term class.public RasterDataSymbol.Source getSource()
public RasterDataNode getRaster()
public void setData(Object data)
public boolean evalB(EvalEnv env)
throws EvalException
Symbolboolean value.
evalB in interface Symbolenv - the application dependant environment.
boolean value
EvalException - if the evaluation fails
public int evalI(EvalEnv env)
throws EvalException
Symbolint value.
evalI in interface Symbolenv - the application dependant environment.
int value
EvalException - if the evaluation fails
public double evalD(EvalEnv env)
throws EvalException
Symboldouble value.
evalD in interface Symbolenv - the application dependant environment.
double value
EvalException - if the evaluation fails
public String evalS(EvalEnv env)
throws EvalException
SymbolString value.
evalS in interface Symbolenv - the application dependant environment.
double value
EvalException - if the evaluation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||