lib/y_petri/workspace.rb in y_petri-2.0.2 vs lib/y_petri/workspace.rb in y_petri-2.0.3

- old
+ new

@@ -1,16 +1,16 @@ -#encoding: utf-8 - -# Workspace holds places, transitions, nets and other assets needed for -# simulation (settings, clamps, initial markings etc.). Workspace also -# provides basic methods for their handling, but these are not too public. -# YPetri interface is defined by YPetri::Manipulator. +# Workspace holds places, transitions, nets and other assets needed to set up +# and simulate Petri nets (settings, clamps, initial markings etc.). Workspace +# provides basic, decent, vanilla methods to just do what is necessary. It is +# up to YPetri::Manipulator to provide ergonomical DSL to the user. # class YPetri::Workspace include NameMagic - require_relative 'workspace/instance_methods' + require_relative 'workspace/petri_net_related_methods' require_relative 'workspace/parametrized_subclassing' + require_relative 'workspace/simulation_related_methods' - include self::InstanceMethods + include self::PetriNetRelatedMethods prepend self::ParametrizedSubclassing + include self::SimulationRelatedMethods end