- java.lang.Object
-
- org.mal_lang.langspec.ttc.TtcExpression
-
- org.mal_lang.langspec.ttc.TtcBinaryOperation
-
- org.mal_lang.langspec.ttc.TtcMultiplication
-
public final class TtcMultiplication extends TtcBinaryOperation
Immutable class representing a TTC multiplication in a MAL language.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description TtcMultiplication(TtcExpression lhs, TtcExpression rhs)
Constructs a newTtcMultiplication
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMeanTtc()
Returns the mean TTC of thisTtcExpression
object.JsonObject
toJson()
Returns the JSON representation of thisTtcExpression
object.-
Methods inherited from class org.mal_lang.langspec.ttc.TtcBinaryOperation
fromJson, getLhs, getRhs
-
Methods inherited from class org.mal_lang.langspec.ttc.TtcExpression
getMeanProbability
-
-
-
-
Constructor Detail
-
TtcMultiplication
public TtcMultiplication(TtcExpression lhs, TtcExpression rhs)
Constructs a newTtcMultiplication
object.- Parameters:
lhs
- the left-hand side of the multiplicationrhs
- the right-hand side of the multiplication- Throws:
NullPointerException
- iflhs
orrhs
isnull
- Since:
- 1.0.0
-
-
Method Detail
-
getMeanTtc
public double getMeanTtc()
Description copied from class:TtcExpression
Returns the mean TTC of thisTtcExpression
object.- Overrides:
getMeanTtc
in classTtcExpression
- Returns:
- the mean TTC of this
TtcExpression
object
-
toJson
public JsonObject toJson()
Description copied from class:TtcExpression
Returns the JSON representation of thisTtcExpression
object.- Specified by:
toJson
in classTtcExpression
- Returns:
- the JSON representation of this
TtcExpression
object
-
-