Class UnCArExpression

  • All Implemented Interfaces:
    CArExpression

    public class UnCArExpression
    extends Object
    implements CArExpression
    Unary arithmetic continuous expression

    Project: choco-solver.

    Since:
    28/04/2016.
    Author:
    Charles Prud'homme
    • Constructor Detail

      • UnCArExpression

        public UnCArExpression​(CArExpression.Operator op,
                               CArExpression exp)
        Builds a unary expression
        Parameters:
        op - operator
        exp - an continuous arithmetic expression
    • Method Detail

      • realVar

        public RealVar realVar​(double p)
        Specified by:
        realVar in interface CArExpression
        Parameters:
        p - precision of the variable to return
        Returns:
        the arithmetic expression as an RealVar. If necessary, it creates intermediary variable and posts intermediary constraints