Class: YPetri::Agent

Inherits:
Object
  • Object
show all
Defined in:
lib/y_petri/agent.rb,
lib/y_petri/agent/selection.rb

Overview

Public command interface of YPetri.

Defined Under Namespace

Modules: PetriNetRelated, SimulationRelated Classes: HashKeyPointer, Selection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAgent

Returns a new instance of Agent.



16
17
18
19
# File 'lib/y_petri/agent.rb', line 16

def initialize
  @world = YPetri::World.new
  super
end

Instance Attribute Details

#worldObject (readonly)

Returns the value of attribute world.



14
15
16
# File 'lib/y_petri/agent.rb', line 14

def world
  @world
end