Class MetricDSLSemanticSequencer

java.lang.Object
org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
org.somox.metrics.dsl.serializer.MetricDSLSemanticSequencer
All Implemented Interfaces:
org.eclipse.xtext.serializer.sequencer.ISemanticSequencer

public class MetricDSLSemanticSequencer extends org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
  • Constructor Details

    • MetricDSLSemanticSequencer

      public MetricDSLSemanticSequencer()
  • Method Details

    • createSequence

      public void createSequence(EObject context, EObject semanticObject)
      Specified by:
      createSequence in interface org.eclipse.xtext.serializer.sequencer.ISemanticSequencer
      Overrides:
      createSequence in class org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
    • sequence_BoundAndWeight

      protected void sequence_BoundAndWeight(EObject context, BoundAndWeight semanticObject)
      Constraint: (upperBound=[Number|MYID] weight=[Number|MYID])
    • sequence_Constant

      protected void sequence_Constant(EObject context, Constant semanticObject)
      Constraint: (name=MYID value=DOUBLE)
    • sequence_ExternalMetric

      protected void sequence_ExternalMetric(EObject context, ExternalMetric semanticObject)
      Constraint: name=MYID
    • sequence_InternalMetric

      protected void sequence_InternalMetric(EObject context, InternalMetric semanticObject)
      Constraint: (name=MYID shortName=STRING description=STRING parameter+=Number* definition=MetricDefinition)
    • sequence_MetricAndWeight

      protected void sequence_MetricAndWeight(EObject context, MetricAndWeight semanticObject)
      Constraint: (metric=[Metric|MYID] weight=[Number|MYID])
    • sequence_MetricModel

      protected void sequence_MetricModel(EObject context, MetricModel semanticObject)
      Constraint: (importURI+=STRING* metrics+=ExternalMetric* metrics+=InternalMetric+)
    • sequence_Parameter

      protected void sequence_Parameter(EObject context, Parameter semanticObject)
      Constraint: (name=MYID shortname=STRING description=STRING defaultValue=DOUBLE)
    • sequence_RatioMetric

      protected void sequence_RatioMetric(EObject context, RatioMetric semanticObject)
      Constraint: (nominatorMetric=[Metric|MYID] denominatorMetric=[Metric|MYID])
    • sequence_StepwiseMetric

      protected void sequence_StepwiseMetric(EObject context, StepwiseMetric semanticObject)
      Constraint: (innerMetric=[Metric|MYID] steps+=BoundAndWeight*)
    • sequence_WeightedMetric

      protected void sequence_WeightedMetric(EObject context, WeightedMetric semanticObject)
      Constraint: weights+=MetricAndWeight+