module Pione::Agent

Agent is a namespace for agents.

Public Class Methods

[](type) click to toggle source

Returns a class corresponding to the agent type.

# File lib/pione/agent/basic-agent.rb, line 7
def [](type)
  @table[type]
end
set_agent(klass) click to toggle source

Sets an agent of the system.

# File lib/pione/agent/basic-agent.rb, line 12
def set_agent(klass)
  @table[klass.agent_type] = klass
end