Module: JIJI::Agent
- Included in:
- PeriodicallyAgent
- Defined in:
- lib/jiji/agent/agent.rb,
lib/jiji/agent/agent_registry.rb
Overview
エージェントを示すマーカーモジュール
Defined Under Namespace
Modules: Shared Classes: Property
Instance Attribute Summary collapse
-
#logger ⇒ Object
エラーロガー.
-
#operator ⇒ Object
オペレータ.
-
#output ⇒ Object
データの出力先.
Instance Method Summary collapse
-
#description ⇒ Object
エージェントの説明を返す.
-
#init ⇒ Object
プロパティ設定後に呼び出される。.
-
#next_rates(rates) ⇒ Object
次のレートを受け取る.
-
#properties ⇒ Object
設定されたプロパティを取得する.
-
#properties=(properties) ⇒ Object
プロパティを設定する.
-
#property_infos ⇒ Object
設定可能なプロパティの一覧を返す.
Instance Attribute Details
#logger ⇒ Object
エラーロガー
42 43 44 |
# File 'lib/jiji/agent/agent.rb', line 42 def logger @logger end |
#operator ⇒ Object
オペレータ
40 41 42 |
# File 'lib/jiji/agent/agent.rb', line 40 def operator @operator end |
#output ⇒ Object
データの出力先
44 45 46 |
# File 'lib/jiji/agent/agent.rb', line 44 def output @output end |
Instance Method Details
#description ⇒ Object
エージェントの説明を返す
35 36 37 |
# File 'lib/jiji/agent/agent.rb', line 35 def description "" end |
#init ⇒ Object
プロパティ設定後に呼び出される。
13 14 |
# File 'lib/jiji/agent/agent.rb', line 13 def init( ) end |
#next_rates(rates) ⇒ Object
次のレートを受け取る
16 17 |
# File 'lib/jiji/agent/agent.rb', line 16 def next_rates( rates ) end |
#properties ⇒ Object
設定されたプロパティを取得する
23 24 25 |
# File 'lib/jiji/agent/agent.rb', line 23 def properties @properties end |
#properties=(properties) ⇒ Object
プロパティを設定する
27 28 29 30 31 32 |
# File 'lib/jiji/agent/agent.rb', line 27 def properties=( properties ) @properties = properties properties.each_pair {|k,v| instance_variable_set("@#{k}", v) } end |
#property_infos ⇒ Object
設定可能なプロパティの一覧を返す
19 20 21 |
# File 'lib/jiji/agent/agent.rb', line 19 def property_infos [] end |