Search in sources :

Example 6 with BinaryExpression

use of edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.BinaryExpression in project AGREE by loonwerks.

the class ExpressionFactory method createFraction.

public static BinaryExpression createFraction(final BigInteger numerator, final BigInteger denominator) {
    final BinaryExpression ic = InputConstraintFactory.eINSTANCE.createBinaryExpression();
    ic.setOp(Operator.DIVISION);
    ic.setLeft(createReal(numerator));
    ic.setRight(createReal(denominator));
    return ic;
}
Also used : BinaryExpression(edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.BinaryExpression)

Aggregations

BinaryExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.BinaryExpression)6 BooleanLiteral (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.BooleanLiteral)5 IntegerLiteral (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.IntegerLiteral)5 ConstRefExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.ConstRefExpression)3 ElementRefExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.ElementRefExpression)3 IntervalExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.IntervalExpression)3 NegativeExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.NegativeExpression)3 PreExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.PreExpression)3 RandomElementExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.RandomElementExpression)3 RandomIntegerExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.RandomIntegerExpression)3 RandomRealExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.RandomRealExpression)3 RealLiteral (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.RealLiteral)3 SetExpression (edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.SetExpression)3 EObject (org.eclipse.emf.ecore.EObject)2 NotificationHandler (edu.uah.rsesc.aadlsimulator.NotificationHandler)1 Rational (edu.uah.rsesc.aadlsimulator.Rational)1 SimulationEngine (edu.uah.rsesc.aadlsimulator.SimulationEngine)1 SimulationEngineNotification (edu.uah.rsesc.aadlsimulator.SimulationEngineNotification)1 SimulationEngineState (edu.uah.rsesc.aadlsimulator.SimulationEngineState)1 ChartElement (edu.uah.rsesc.aadlsimulator.ui.dialogs.ChartHelper.ChartElement)1