Sha256: dfa699a8227d99564d3bb719423d2457b1c6bd2ebfc6f37f0b7ab727a5af5666

Contents?: true

Size: 1.17 KB

Versions: 227

Compression:

Stored size: 1.17 KB

Contents

# a test metamodel used by the following tests
module StatemachineMetamodel
  extend RGen::MetamodelBuilder::ModuleExtension
  
  module Condition
    extend RGen::MetamodelBuilder::ModuleExtension
  
    class Condition < RGen::MetamodelBuilder::MMBase
    end
  
    module TimeCondition
      extend RGen::MetamodelBuilder::ModuleExtension
  
      class TimeCondition < Condition
        has_attr 'timeout', Integer
      end
    end
  end
  
  class Statemachine < RGen::MetamodelBuilder::MMBase
    has_attr 'name'
  end
  
  class State < RGen::MetamodelBuilder::MMBase
    has_attr 'name'
    has_attr 'kind', RGen::MetamodelBuilder::DataTypes::Enum.new([:START])
  end
  
  class CompositeState < State
    has_attr 'name'
    contains_many 'state', State, 'compositeState'
  end
  
  class Transition < RGen::MetamodelBuilder::MMBase
    many_to_one 'sourceState', State, 'outgoingTransition'
    many_to_one 'targetState', State, 'incomingTransition'
    has_many 'condition', Condition::Condition
  end
  
  Statemachine.contains_many 'state', State, 'statemachine'
  Statemachine.contains_many 'transition', Transition, 'statemachine'
end

Version data entries

227 entries across 227 versions & 3 rubygems

Version Path
rgen-0.9.1 ./test/model_builder/statemachine_metamodel.rb
rgen-0.8.3 test/model_builder/statemachine_metamodel.rb
rgen-0.8.4 test/model_builder/statemachine_metamodel.rb
rgen-0.9.0 test/model_builder/statemachine_metamodel.rb
puppet-4.10.12 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.12-x86-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.12-x64-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.12-universal-darwin lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.11 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.11-x86-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.11-x64-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.11-universal-darwin lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.10 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.10-x86-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.10-x64-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.10-universal-darwin lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.9 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.9-x86-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.9-x64-mingw32 lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb
puppet-4.10.9-universal-darwin lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb