- java.lang.Object
-
- org.mal_lang.langspec.ttc.TtcExpression
-
- org.mal_lang.langspec.ttc.TtcBinaryOperation
-
- org.mal_lang.langspec.ttc.TtcSubtraction
-
public final class TtcSubtraction extends TtcBinaryOperation
Immutable class representing a TTC subtraction in a MAL language.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description TtcSubtraction(TtcExpression lhs, TtcExpression rhs)Constructs a newTtcSubtractionobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetMeanTtc()Returns the mean TTC of thisTtcExpressionobject.JsonObjecttoJson()Returns the JSON representation of thisTtcExpressionobject.-
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
-
TtcSubtraction
public TtcSubtraction(TtcExpression lhs, TtcExpression rhs)
Constructs a newTtcSubtractionobject.- Parameters:
lhs- the left-hand side of the subtractionrhs- the right-hand side of the subtraction- Throws:
NullPointerException- iflhsorrhsisnull- Since:
- 1.0.0
-
-
Method Detail
-
getMeanTtc
public double getMeanTtc()
Description copied from class:TtcExpressionReturns the mean TTC of thisTtcExpressionobject.- Overrides:
getMeanTtcin classTtcExpression- Returns:
- the mean TTC of this
TtcExpressionobject
-
toJson
public JsonObject toJson()
Description copied from class:TtcExpressionReturns the JSON representation of thisTtcExpressionobject.- Specified by:
toJsonin classTtcExpression- Returns:
- the JSON representation of this
TtcExpressionobject
-
-