cirrocumulus 0.2.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cirrocumulus}
8
- s.version = "0.2.8"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anton Kosyakin"]
12
- s.date = %q{2011-10-11}
12
+ s.date = %q{2011-10-19}
13
13
  s.description = %q{Engine for building your own agents, providing you base functionality for loading ontologies, communicating with other agents and parsing FIPA-ACL messages}
14
14
  s.email = %q{deil@mneko.net}
15
15
  s.extra_rdoc_files = [
@@ -47,6 +47,13 @@ module Ontology
47
47
  puts "call to dummy Ontology::Base.handle_message()"
48
48
  end
49
49
 
50
+ def create_saga(saga_class)
51
+ @saga_idx += 1
52
+ saga = saga_class.new(saga_class.to_s + '-' + @saga_idx.to_s, self)
53
+ @sagas << saga
54
+ saga
55
+ end
56
+
50
57
  def logger
51
58
  Log4r::Logger['agent']
52
59
  end
@@ -11,10 +11,9 @@ class Saga
11
11
  STATE_START = 0
12
12
  STATE_FINISHED = 255
13
13
 
14
- def initialize(id, cm, agent)
15
- @agent = agent
16
- @cm = cm
14
+ def initialize(id, ontology)
17
15
  @id = id
16
+ @ontology = ontology
18
17
  @finished = false
19
18
  @timeout = -1
20
19
  @state = STATE_START
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirrocumulus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 8
10
- version: 0.2.8
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Kosyakin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-11 00:00:00 +04:00
18
+ date: 2011-10-19 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency