Exception: Pione::Agent::TerminationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pione/agent/agent-exception.rb

Overview

TerminationError is raised when the agent reaches trasition termination.

Instance Method Summary collapse

Constructor Details

#initialize(agent, states) ⇒ TerminationError

Returns a new instance of TerminationError.



5
6
7
8
# File 'lib/pione/agent/agent-exception.rb', line 5

def initialize(agent, states)
  @agent = agent
  @states = states
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/pione/agent/agent-exception.rb', line 10

def message
  "agent %s has reached termination([%s])" % [@agent, @states.map{|s| s.to_s}.join(", ")]
end