public final class RPNTransform extends AbstractTransform
Instances of this class apply the RPN program from its '"Program"' parameter. This program is compiled on startup, using the macro and word definitions supplied by the'' and'' parameters for itself and its engine.
RPNEngine
Proxied.Abstract
Constructor and Description |
---|
RPNTransform(RPNEngine engine)
Constructs a RPN transform.
|
Modifier and Type | Method and Description |
---|---|
Optional<PointValue> |
applyTo(ResultValue resultValue,
Batch batch)
Applies the program to provide the specified result value.
|
boolean |
setUp(Metadata metadata,
ProxyEntity proxyEntity)
Sets up the instance for action.
|
boolean |
usesFetchedResult()
Asks if this transform needs the fetched result value.
|
addUpdate, getInstance, isNullRemoves, setUp
getMetadata, getName, getParams, getProxyEntity, getThisLogger, tearDown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getParams, getProxyEntity, tearDown
public RPNTransform(@Nonnull RPNEngine engine)
engine
- The RPN engine.public Optional<PointValue> applyTo(ResultValue resultValue, Batch batch)
When this method is called, the result value must have been provided with all its needed input values.
Note: the returned value is not required to be an instance of the ResultValue class.
resultValue
- The result value needing update.batch
- The current batch.public boolean setUp(Metadata metadata, ProxyEntity proxyEntity)
setUp
in interface Proxied
setUp
in class AbstractTransform
metadata
- The metadata available to the current process.proxyEntity
- The proxy entity refering to the proxied.public boolean usesFetchedResult()
usesFetchedResult
in interface Transform
usesFetchedResult
in class AbstractTransform
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.