Module: Pione::Agent

Defined in:
lib/pione/agent.rb,
lib/pione/agent/logger.rb,
lib/pione/agent/messenger.rb,
lib/pione/agent/basic-agent.rb,
lib/pione/agent/job-manager.rb,
lib/pione/agent/task-worker.rb,
lib/pione/agent/job-terminator.rb,
lib/pione/agent/agent-exception.rb,
lib/pione/agent/input-generator.rb,
lib/pione/agent/task-worker-broker.rb,
lib/pione/agent/tuple-space-client.rb,
lib/pione/agent/tuple-space-provider.rb,
lib/pione/agent/notification-listener.rb

Overview

Agent is a namespace for agents.

Defined Under Namespace

Modules: StateTransitionSingletonMethod, TupleSpaceClientOperation Classes: AgentState, BasicAgent, ConnectionError, DirInputGeneratorMethod, InputGenerator, InputGeneratorMethod, JobError, JobManager, JobTerminator, Logger, Messenger, NotificationListener, Restart, TaskWorker, TaskWorkerBroker, TerminationError, TimeoutError, TupleSpaceClient, TupleSpaceError, TupleSpaceProvider, UnknownInputGeneratorMethod

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object

Returns a class corresponding to the agent type.



7
8
9
# File 'lib/pione/agent/basic-agent.rb', line 7

def [](type)
  @table[type]
end

.set_agent(klass) ⇒ Object

Sets an agent of the system.



12
13
14
# File 'lib/pione/agent/basic-agent.rb', line 12

def set_agent(klass)
  @table[klass.agent_type] = klass
end