Exception: Pione::Agent::TerminationError
- Inherits:
-
StandardError
- Object
- StandardError
- Pione::Agent::TerminationError
- Defined in:
- lib/pione/agent/agent-exception.rb
Overview
TerminationError is raised when the agent reaches trasition termination.
Instance Method Summary collapse
-
#initialize(agent, states) ⇒ TerminationError
constructor
A new instance of TerminationError.
- #message ⇒ Object
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
#message ⇒ Object
10 11 12 |
# File 'lib/pione/agent/agent-exception.rb', line 10 def "agent %s has reached termination([%s])" % [@agent, @states.map{|s| s.to_s}.join(", ")] end |