- 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 newTtcSubtraction
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
-
TtcSubtraction
public TtcSubtraction(TtcExpression lhs, TtcExpression rhs)
Constructs a newTtcSubtraction
object.- Parameters:
lhs
- the left-hand side of the subtractionrhs
- the right-hand side of the subtraction- 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
-
-