Class TtcSubtraction


  • public final class TtcSubtraction
    extends TtcBinaryOperation
    Immutable class representing a TTC subtraction in a MAL language.
    Since:
    1.0.0
    • Constructor Detail

      • TtcSubtraction

        public TtcSubtraction​(TtcExpression lhs,
                              TtcExpression rhs)
        Constructs a new TtcSubtraction object.
        Parameters:
        lhs - the left-hand side of the subtraction
        rhs - the right-hand side of the subtraction
        Throws:
        NullPointerException - if lhs or rhs is null
        Since:
        1.0.0
    • Method Detail

      • getMeanTtc

        public double getMeanTtc()
        Description copied from class: TtcExpression
        Returns the mean TTC of this TtcExpression object.
        Overrides:
        getMeanTtc in class TtcExpression
        Returns:
        the mean TTC of this TtcExpression object
      • toJson

        public JsonObject toJson()
        Description copied from class: TtcExpression
        Returns the JSON representation of this TtcExpression object.
        Specified by:
        toJson in class TtcExpression
        Returns:
        the JSON representation of this TtcExpression object