Interface Operation

All Known Implementing Classes:
AdditionOperation, CapDisplacingOperation, CapOperation, ChangeOperation, ChangeUnitsOperation, ComparisonOperation, ConditionalOperation, DefineVariableOperation, DivisionOperation, DrawNormalOperation, DrawUniformOperation, EnableOperation, EqualityOperation, EqualsOperation, FloorDisplacingOperation, FloorOperation, GetStreamOperation, GetVariableOperation, InitialChargeOperation, JointOperation, LimitOperation, LogicalOperation, MultiplicationOperation, PowerOperation, PreCalculatedOperation, RechargeOperation, RecoverOperation, RemoveUnitsOperation, ReplaceOperation, RetireExactOperation, RetireOperation, RetireWeibullOperation, RetireWithReplacementOperation, SetOperation, SubtractionOperation

public interface Operation
Description of a calculation which can be resolved to an EngineNumber at QubecTalk runtime.
  • Method Details

    • execute

      void execute(PushDownMachine machine)
      Execute the calculation and leave the result at the top of the stack.
      Parameters:
      machine - The machine in which to execute the calculation if needed.
    • getStaticSemantics

      OperationStaticSemantics getStaticSemantics()
      Get a record describing this operation's semantics.

      Get a record describing this operation's semantics that are inferrable from its static expression in code. In other words, properties and effects which do not require inspection at time of executing the operation.

      Returns:
      Inference of common static properties found for this operation.