class Pione::Agent::InputGeneratorMethod

InputGeneratorMethod is an interface class for generator methods.

Attributes

input_location[R]
stream[R]
stream?[R]

Public Class Methods

method_name(name) click to toggle source
# File lib/pione/agent/input-generator.rb, line 104
def self.method_name(name)
  InputGenerator.generator_method[name] = self
end
new(space, input_location, stream) click to toggle source
# File lib/pione/agent/input-generator.rb, line 112
def initialize(space, input_location, stream)
  @__space__ = space
  @input_location = input_location
  @stream = stream
end

Public Instance Methods

generate() click to toggle source

Generate an input tuple.

# File lib/pione/agent/input-generator.rb, line 129
def generate
  raise NotImplementedError
end
init() click to toggle source

Initialize the generator method.

# File lib/pione/agent/input-generator.rb, line 124
def init
  raise NotImplementedError
end
now() click to toggle source

Return current time. The time is based on tuple space.

# File lib/pione/agent/input-generator.rb, line 119
def now
  @__space__.now
end