Class TtcMultiplication


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

      • TtcMultiplication

        public TtcMultiplication​(TtcExpression lhs,
                                 TtcExpression rhs)
        Constructs a new TtcMultiplication object.
        Parameters:
        lhs - the left-hand side of the multiplication
        rhs - the right-hand side of the multiplication
        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