|
@@ -308,12 +308,12 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.RECURRENCE:
|
|
|
+ case ContractLangPackage.RECURRENCE_PATTERN:
|
|
|
{
|
|
|
- Recurrence recurrence = (Recurrence)theEObject;
|
|
|
- T result = caseRecurrence(recurrence);
|
|
|
- if (result == null) result = caseOccurrence(recurrence);
|
|
|
- if (result == null) result = casePattern(recurrence);
|
|
|
+ RecurrencePattern recurrencePattern = (RecurrencePattern)theEObject;
|
|
|
+ T result = caseRecurrencePattern(recurrencePattern);
|
|
|
+ if (result == null) result = caseOccurrence(recurrencePattern);
|
|
|
+ if (result == null) result = casePattern(recurrencePattern);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
@@ -445,24 +445,7 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
{
|
|
|
TimeUnit timeUnit = (TimeUnit)theEObject;
|
|
|
T result = caseTimeUnit(timeUnit);
|
|
|
- if (result == null) result = defaultCase(theEObject);
|
|
|
- return result;
|
|
|
- }
|
|
|
- case ContractLangPackage.MILLISECONDS:
|
|
|
- {
|
|
|
- Milliseconds milliseconds = (Milliseconds)theEObject;
|
|
|
- T result = caseMilliseconds(milliseconds);
|
|
|
- if (result == null) result = caseTimeUnit(milliseconds);
|
|
|
- if (result == null) result = caseUnit(milliseconds);
|
|
|
- if (result == null) result = defaultCase(theEObject);
|
|
|
- return result;
|
|
|
- }
|
|
|
- case ContractLangPackage.SECONDS:
|
|
|
- {
|
|
|
- Seconds seconds = (Seconds)theEObject;
|
|
|
- T result = caseSeconds(seconds);
|
|
|
- if (result == null) result = caseTimeUnit(seconds);
|
|
|
- if (result == null) result = caseUnit(seconds);
|
|
|
+ if (result == null) result = caseUnit(timeUnit);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
@@ -533,6 +516,38 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
{
|
|
|
NumValue numValue = (NumValue)theEObject;
|
|
|
T result = caseNumValue(numValue);
|
|
|
+ if (result == null) result = caseExpression(numValue);
|
|
|
+ if (result == null) result = caseValue(numValue);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.INFINITY:
|
|
|
+ {
|
|
|
+ Infinity infinity = (Infinity)theEObject;
|
|
|
+ T result = caseInfinity(infinity);
|
|
|
+ if (result == null) result = caseNumValue(infinity);
|
|
|
+ if (result == null) result = caseExpression(infinity);
|
|
|
+ if (result == null) result = caseValue(infinity);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.INT_VALUE:
|
|
|
+ {
|
|
|
+ IntValue intValue = (IntValue)theEObject;
|
|
|
+ T result = caseIntValue(intValue);
|
|
|
+ if (result == null) result = caseNumValue(intValue);
|
|
|
+ if (result == null) result = caseExpression(intValue);
|
|
|
+ if (result == null) result = caseValue(intValue);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.FLOAT_VALUE:
|
|
|
+ {
|
|
|
+ FloatValue floatValue = (FloatValue)theEObject;
|
|
|
+ T result = caseFloatValue(floatValue);
|
|
|
+ if (result == null) result = caseNumValue(floatValue);
|
|
|
+ if (result == null) result = caseExpression(floatValue);
|
|
|
+ if (result == null) result = caseValue(floatValue);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
@@ -543,6 +558,22 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
+ case ContractLangPackage.UNITLESS:
|
|
|
+ {
|
|
|
+ Unitless unitless = (Unitless)theEObject;
|
|
|
+ T result = caseUnitless(unitless);
|
|
|
+ if (result == null) result = caseUnit(unitless);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.PERCENTAGE:
|
|
|
+ {
|
|
|
+ Percentage percentage = (Percentage)theEObject;
|
|
|
+ T result = casePercentage(percentage);
|
|
|
+ if (result == null) result = caseUnit(percentage);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
case ContractLangPackage.DERIVATIVE:
|
|
|
{
|
|
|
Derivative derivative = (Derivative)theEObject;
|
|
@@ -575,36 +606,6 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.INFINITY:
|
|
|
- {
|
|
|
- Infinity infinity = (Infinity)theEObject;
|
|
|
- T result = caseInfinity(infinity);
|
|
|
- if (result == null) result = caseExpression(infinity);
|
|
|
- if (result == null) result = caseNumValue(infinity);
|
|
|
- if (result == null) result = caseValue(infinity);
|
|
|
- if (result == null) result = defaultCase(theEObject);
|
|
|
- return result;
|
|
|
- }
|
|
|
- case ContractLangPackage.INT_VALUE:
|
|
|
- {
|
|
|
- IntValue intValue = (IntValue)theEObject;
|
|
|
- T result = caseIntValue(intValue);
|
|
|
- if (result == null) result = caseExpression(intValue);
|
|
|
- if (result == null) result = caseNumValue(intValue);
|
|
|
- if (result == null) result = caseValue(intValue);
|
|
|
- if (result == null) result = defaultCase(theEObject);
|
|
|
- return result;
|
|
|
- }
|
|
|
- case ContractLangPackage.FLOAT_VALUE:
|
|
|
- {
|
|
|
- FloatValue floatValue = (FloatValue)theEObject;
|
|
|
- T result = caseFloatValue(floatValue);
|
|
|
- if (result == null) result = caseExpression(floatValue);
|
|
|
- if (result == null) result = caseNumValue(floatValue);
|
|
|
- if (result == null) result = caseValue(floatValue);
|
|
|
- if (result == null) result = defaultCase(theEObject);
|
|
|
- return result;
|
|
|
- }
|
|
|
case ContractLangPackage.EQUALITY:
|
|
|
{
|
|
|
Equality equality = (Equality)theEObject;
|
|
@@ -681,28 +682,35 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.VALUE_WITH_UNIT:
|
|
|
+ case ContractLangPackage.INTERVAL_BOUND:
|
|
|
{
|
|
|
- ValueWithUnit valueWithUnit = (ValueWithUnit)theEObject;
|
|
|
- T result = caseValueWithUnit(valueWithUnit);
|
|
|
- if (result == null) result = caseExpression(valueWithUnit);
|
|
|
- if (result == null) result = caseValue(valueWithUnit);
|
|
|
+ IntervalBound intervalBound = (IntervalBound)theEObject;
|
|
|
+ T result = caseIntervalBound(intervalBound);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.UNITLESS:
|
|
|
+ case ContractLangPackage.OPEN_INTERVAL:
|
|
|
{
|
|
|
- Unitless unitless = (Unitless)theEObject;
|
|
|
- T result = caseUnitless(unitless);
|
|
|
- if (result == null) result = caseUnit(unitless);
|
|
|
+ OpenInterval openInterval = (OpenInterval)theEObject;
|
|
|
+ T result = caseOpenInterval(openInterval);
|
|
|
+ if (result == null) result = caseIntervalBound(openInterval);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.PERCENTAGE:
|
|
|
+ case ContractLangPackage.CLOSED_INTERVAL:
|
|
|
{
|
|
|
- Percentage percentage = (Percentage)theEObject;
|
|
|
- T result = casePercentage(percentage);
|
|
|
- if (result == null) result = caseUnit(percentage);
|
|
|
+ ClosedInterval closedInterval = (ClosedInterval)theEObject;
|
|
|
+ T result = caseClosedInterval(closedInterval);
|
|
|
+ if (result == null) result = caseIntervalBound(closedInterval);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.VALUE_WITH_UNIT:
|
|
|
+ {
|
|
|
+ ValueWithUnit valueWithUnit = (ValueWithUnit)theEObject;
|
|
|
+ T result = caseValueWithUnit(valueWithUnit);
|
|
|
+ if (result == null) result = caseExpression(valueWithUnit);
|
|
|
+ if (result == null) result = caseValue(valueWithUnit);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
@@ -737,14 +745,6 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.FREQUENCY:
|
|
|
- {
|
|
|
- Frequency frequency = (Frequency)theEObject;
|
|
|
- T result = caseFrequency(frequency);
|
|
|
- if (result == null) result = caseUnit(frequency);
|
|
|
- if (result == null) result = defaultCase(theEObject);
|
|
|
- return result;
|
|
|
- }
|
|
|
case ContractLangPackage.FMU_PROPERTY:
|
|
|
{
|
|
|
FMUProperty fmuProperty = (FMUProperty)theEObject;
|
|
@@ -779,11 +779,73 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
- case ContractLangPackage.METERS_PER_SECOND:
|
|
|
+ case ContractLangPackage.POWER_BOND_SUGGESTION:
|
|
|
{
|
|
|
- MetersPerSecond metersPerSecond = (MetersPerSecond)theEObject;
|
|
|
- T result = caseMetersPerSecond(metersPerSecond);
|
|
|
- if (result == null) result = caseUnit(metersPerSecond);
|
|
|
+ PowerBondSuggestion powerBondSuggestion = (PowerBondSuggestion)theEObject;
|
|
|
+ T result = casePowerBondSuggestion(powerBondSuggestion);
|
|
|
+ if (result == null) result = caseDomainValue(powerBondSuggestion);
|
|
|
+ if (result == null) result = caseExpression(powerBondSuggestion);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.COSIM_UNIT:
|
|
|
+ {
|
|
|
+ CosimUnit cosimUnit = (CosimUnit)theEObject;
|
|
|
+ T result = caseCosimUnit(cosimUnit);
|
|
|
+ if (result == null) result = caseUnit(cosimUnit);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.FREQUENCY:
|
|
|
+ {
|
|
|
+ Frequency frequency = (Frequency)theEObject;
|
|
|
+ T result = caseFrequency(frequency);
|
|
|
+ if (result == null) result = caseCosimUnit(frequency);
|
|
|
+ if (result == null) result = caseUnit(frequency);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.SAHARA_PROPERTY:
|
|
|
+ {
|
|
|
+ SAHARAProperty saharaProperty = (SAHARAProperty)theEObject;
|
|
|
+ T result = caseSAHARAProperty(saharaProperty);
|
|
|
+ if (result == null) result = caseVariable(saharaProperty);
|
|
|
+ if (result == null) result = caseVarOrVarOp(saharaProperty);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.SAHARA_S:
|
|
|
+ {
|
|
|
+ SAHARA_S saharA_S = (SAHARA_S)theEObject;
|
|
|
+ T result = caseSAHARA_S(saharA_S);
|
|
|
+ if (result == null) result = caseAssignAction(saharA_S);
|
|
|
+ if (result == null) result = caseAction(saharA_S);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.SAHARA_E:
|
|
|
+ {
|
|
|
+ SAHARA_E saharA_E = (SAHARA_E)theEObject;
|
|
|
+ T result = caseSAHARA_E(saharA_E);
|
|
|
+ if (result == null) result = caseAssignAction(saharA_E);
|
|
|
+ if (result == null) result = caseAction(saharA_E);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.SAHARA_C:
|
|
|
+ {
|
|
|
+ SAHARA_C saharA_C = (SAHARA_C)theEObject;
|
|
|
+ T result = caseSAHARA_C(saharA_C);
|
|
|
+ if (result == null) result = caseAssignAction(saharA_C);
|
|
|
+ if (result == null) result = caseAction(saharA_C);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.SAHARA_UNIT:
|
|
|
+ {
|
|
|
+ SAHARAUnit saharaUnit = (SAHARAUnit)theEObject;
|
|
|
+ T result = caseSAHARAUnit(saharaUnit);
|
|
|
+ if (result == null) result = caseUnit(saharaUnit);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
@@ -791,10 +853,47 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
{
|
|
|
Meters meters = (Meters)theEObject;
|
|
|
T result = caseMeters(meters);
|
|
|
+ if (result == null) result = caseSAHARAUnit(meters);
|
|
|
if (result == null) result = caseUnit(meters);
|
|
|
if (result == null) result = defaultCase(theEObject);
|
|
|
return result;
|
|
|
}
|
|
|
+ case ContractLangPackage.METERS_PER_SECOND:
|
|
|
+ {
|
|
|
+ MetersPerSecond metersPerSecond = (MetersPerSecond)theEObject;
|
|
|
+ T result = caseMetersPerSecond(metersPerSecond);
|
|
|
+ if (result == null) result = caseSAHARAUnit(metersPerSecond);
|
|
|
+ if (result == null) result = caseUnit(metersPerSecond);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.KILOMETERS:
|
|
|
+ {
|
|
|
+ Kilometers kilometers = (Kilometers)theEObject;
|
|
|
+ T result = caseKilometers(kilometers);
|
|
|
+ if (result == null) result = caseSAHARAUnit(kilometers);
|
|
|
+ if (result == null) result = caseUnit(kilometers);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.KILOMETERS_PER_HOUR:
|
|
|
+ {
|
|
|
+ KilometersPerHour kilometersPerHour = (KilometersPerHour)theEObject;
|
|
|
+ T result = caseKilometersPerHour(kilometersPerHour);
|
|
|
+ if (result == null) result = caseSAHARAUnit(kilometersPerHour);
|
|
|
+ if (result == null) result = caseUnit(kilometersPerHour);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ case ContractLangPackage.FORCE:
|
|
|
+ {
|
|
|
+ Force force = (Force)theEObject;
|
|
|
+ T result = caseForce(force);
|
|
|
+ if (result == null) result = caseSAHARAUnit(force);
|
|
|
+ if (result == null) result = caseUnit(force);
|
|
|
+ if (result == null) result = defaultCase(theEObject);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
default: return defaultCase(theEObject);
|
|
|
}
|
|
|
}
|
|
@@ -1264,17 +1363,17 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Recurrence</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Recurrence Pattern</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Recurrence</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Recurrence Pattern</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseRecurrence(Recurrence object)
|
|
|
+ public T caseRecurrencePattern(RecurrencePattern object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
@@ -1535,38 +1634,6 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Milliseconds</em>'.
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * This implementation returns null;
|
|
|
- * returning a non-null result will terminate the switch.
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Milliseconds</em>'.
|
|
|
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public T caseMilliseconds(Milliseconds object)
|
|
|
- {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Seconds</em>'.
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * This implementation returns null;
|
|
|
- * returning a non-null result will terminate the switch.
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Seconds</em>'.
|
|
|
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public T caseSeconds(Seconds object)
|
|
|
- {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Returns the result of interpreting the object as an instance of '<em>Probability</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
@@ -1728,129 +1795,161 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Unit</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Infinity</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Unit</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Infinity</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseUnit(Unit object)
|
|
|
+ public T caseInfinity(Infinity object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Derivative</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Derivative</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Int Value</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseDerivative(Derivative object)
|
|
|
+ public T caseIntValue(IntValue object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Absolute Value</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Float Value</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Absolute Value</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Float Value</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseAbsoluteValue(AbsoluteValue object)
|
|
|
+ public T caseFloatValue(FloatValue object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Difference</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Unit</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Difference</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Unit</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseDifference(Difference object)
|
|
|
+ public T caseUnit(Unit object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Average</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Unitless</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Average</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Unitless</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseAverage(Average object)
|
|
|
+ public T caseUnitless(Unitless object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Infinity</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Percentage</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Infinity</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Percentage</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseInfinity(Infinity object)
|
|
|
+ public T casePercentage(Percentage object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Derivative</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Int Value</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Derivative</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseIntValue(IntValue object)
|
|
|
+ public T caseDerivative(Derivative object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Float Value</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Absolute Value</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Float Value</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Absolute Value</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseFloatValue(FloatValue object)
|
|
|
+ public T caseAbsoluteValue(AbsoluteValue object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Difference</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Difference</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseDifference(Difference object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Average</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Average</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseAverage(Average object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
@@ -2000,49 +2099,65 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Value With Unit</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Interval Bound</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Value With Unit</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Interval Bound</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseValueWithUnit(ValueWithUnit object)
|
|
|
+ public T caseIntervalBound(IntervalBound object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Unitless</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Open Interval</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Unitless</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Open Interval</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseUnitless(Unitless object)
|
|
|
+ public T caseOpenInterval(OpenInterval object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Percentage</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Closed Interval</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Percentage</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Closed Interval</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T casePercentage(Percentage object)
|
|
|
+ public T caseClosedInterval(ClosedInterval object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Value With Unit</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Value With Unit</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseValueWithUnit(ValueWithUnit object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
@@ -2111,6 +2226,102 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>FMU Property</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>FMU Property</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseFMUProperty(FMUProperty object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>FMU Instance</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>FMU Instance</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseFMUInstance(FMUInstance object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>FMU Signal</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>FMU Signal</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseFMUSignal(FMUSignal object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Steady State Suggestion</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Steady State Suggestion</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseSteadyStateSuggestion(SteadyStateSuggestion object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Power Bond Suggestion</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Power Bond Suggestion</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T casePowerBondSuggestion(PowerBondSuggestion object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Cosim Unit</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Cosim Unit</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseCosimUnit(CosimUnit object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Returns the result of interpreting the object as an instance of '<em>Frequency</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
@@ -2128,81 +2339,81 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>FMU Property</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>SAHARA Property</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>FMU Property</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>SAHARA Property</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseFMUProperty(FMUProperty object)
|
|
|
+ public T caseSAHARAProperty(SAHARAProperty object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>FMU Instance</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>SAHARA S</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>FMU Instance</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>SAHARA S</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseFMUInstance(FMUInstance object)
|
|
|
+ public T caseSAHARA_S(SAHARA_S object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>FMU Signal</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>SAHARA E</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>FMU Signal</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>SAHARA E</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseFMUSignal(FMUSignal object)
|
|
|
+ public T caseSAHARA_E(SAHARA_E object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Steady State Suggestion</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>SAHARA C</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Steady State Suggestion</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>SAHARA C</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseSteadyStateSuggestion(SteadyStateSuggestion object)
|
|
|
+ public T caseSAHARA_C(SAHARA_C object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns the result of interpreting the object as an instance of '<em>Meters Per Second</em>'.
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>SAHARA Unit</em>'.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* This implementation returns null;
|
|
|
* returning a non-null result will terminate the switch.
|
|
|
* <!-- end-user-doc -->
|
|
|
* @param object the target of the switch.
|
|
|
- * @return the result of interpreting the object as an instance of '<em>Meters Per Second</em>'.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>SAHARA Unit</em>'.
|
|
|
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
* @generated
|
|
|
*/
|
|
|
- public T caseMetersPerSecond(MetersPerSecond object)
|
|
|
+ public T caseSAHARAUnit(SAHARAUnit object)
|
|
|
{
|
|
|
return null;
|
|
|
}
|
|
@@ -2223,6 +2434,70 @@ public class ContractLangSwitch<T> extends Switch<T>
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Meters Per Second</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Meters Per Second</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseMetersPerSecond(MetersPerSecond object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Kilometers</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Kilometers</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseKilometers(Kilometers object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Kilometers Per Hour</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Kilometers Per Hour</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseKilometersPerHour(KilometersPerHour object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the result of interpreting the object as an instance of '<em>Force</em>'.
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * This implementation returns null;
|
|
|
+ * returning a non-null result will terminate the switch.
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @param object the target of the switch.
|
|
|
+ * @return the result of interpreting the object as an instance of '<em>Force</em>'.
|
|
|
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public T caseForce(Force object)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
|
|
* <!-- begin-user-doc -->
|