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