- java.lang.Object
-
- org.mal_lang.langspec.ttc.TtcExpression
-
- org.mal_lang.langspec.ttc.TtcBinaryOperation
-
- org.mal_lang.langspec.ttc.TtcExponentiation
-
public final class TtcExponentiation extends TtcBinaryOperation
Immutable class representing a TTC exponentiation in a MAL language.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description TtcExponentiation(TtcExpression lhs, TtcExpression rhs)Constructs a newTtcExponentiationobject.
-
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
-
TtcExponentiation
public TtcExponentiation(TtcExpression lhs, TtcExpression rhs)
Constructs a newTtcExponentiationobject.- Parameters:
lhs- the left-hand side of the exponentiationrhs- the right-hand side of the exponentiation- Throws:
NullPointerException- iflhsorrhsisnull
-
-
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
-
-