class Pione::Agent::TerminationError

TerminationError is raised when the agent reaches trasition termination.

Public Class Methods

new(agent, states) click to toggle source
# File lib/pione/agent/agent-exception.rb, line 5
def initialize(agent, states)
  @agent = agent
  @states = states
end

Public Instance Methods

message() click to toggle source
# 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