Class: Pione::Command::PioneTupleSpaceProvider
- Inherits:
-
BasicCommand
- Object
- Rootage::Scenario
- Rootage::Command
- Rootage::StandardCommand
- BasicCommand
- Pione::Command::PioneTupleSpaceProvider
- Defined in:
- lib/pione/command/pione-tuple-space-provider.rb
Overview
PioneTupleSpaceProvider
is for pione-tuple-space-provider
command.
Instance Attribute Summary
Attributes inherited from Rootage::Command
#argument_definition, #argv, #option_definition
Attributes inherited from Rootage::Scenario
#args, #current_phase, #exit_status, #info, #model, #running_thread
Class Method Summary collapse
-
.spawn(cmd) ⇒ Object
Create a new process of tuple space provider command.
Methods inherited from BasicCommand
Methods inherited from Rootage::StandardCommand
execution, setup, #terminate, termination
Methods inherited from Rootage::Command
#<<, define_subcommand, #exit, has_subcommands?, inherited, init, #initialize, #program_name, #run, #scenario_name, toplevel?
Methods inherited from Rootage::Scenario
#<<, #abort, define_action, #exit, inherited, #initialize, make, require, #run, run, scenario_name
Methods included from Rootage::ScenarioInterface
#define, #define_phase, #desc, #phase, #phase_class, #process_context_class, #scenario_name
Constructor Details
This class inherits a constructor from Rootage::Command
Class Method Details
.spawn(cmd) ⇒ Object
Create a new process of tuple space provider command.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/pione/command/pione-tuple-space-provider.rb', line 10 def self.spawn(cmd) spawner = Spawner.new(cmd.model, "pione-tuple-space-provider") # debug options spawner.option_if(Global.debug_system, "--debug=system") spawner.option_if(Global.debug_ignored_exception, "--debug=ignored_exception") spawner.option_if(Global.debug_rule_engine, "--debug=rule_engine") spawner.option_if(Global.debug_communication, "--debug=communication") spawner.option_if(Global.debug_notification, "--debug=notification") # requisite options spawner.option("--parent-front", cmd.model[:front].uri) spawner.option("--communication-address", Global.communication_address) Global.notification_targets.each do |address| spawner.option("--notification-target", address) end # optionals spawner.option("--color", Global.color_enabled) spawner.spawn end |