wiseml-ruby 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +4 -0
  3. data/README.md +0 -0
  4. data/Rakefile +2 -0
  5. data/lib/version.rb +3 -0
  6. data/lib/wise_ml.rb +6 -0
  7. data/lib/wiseconfig/application.rb +5 -0
  8. data/lib/wiseconfig/configuration.rb +5 -0
  9. data/lib/wiseconfig/nodename.rb +5 -0
  10. data/lib/wiseconfig/nodes.rb +5 -0
  11. data/lib/wiseconfig/portal_app.rb +5 -0
  12. data/lib/wiseconfig/protobuf_interface.rb +5 -0
  13. data/lib/wiseconfig/server_connection.rb +5 -0
  14. data/lib/wiseconfig/testbed_configuration.rb +5 -0
  15. data/lib/wiseconfig/web_service.rb +5 -0
  16. data/lib/wiseconfig/wsn_device.rb +5 -0
  17. data/lib/wiseml/all.rb +66 -0
  18. data/lib/wiseml/scenario/disable_link.rb +15 -0
  19. data/lib/wiseml/scenario/disable_node.rb +12 -0
  20. data/lib/wiseml/scenario/enable_link.rb +14 -0
  21. data/lib/wiseml/scenario/enable_node.rb +13 -0
  22. data/lib/wiseml/scenario/scenario.rb +17 -0
  23. data/lib/wiseml/scenario/timestamp.rb +20 -0
  24. data/lib/wiseml/setup/capability.rb +19 -0
  25. data/lib/wiseml/setup/data.rb +15 -0
  26. data/lib/wiseml/setup/defaults.rb +14 -0
  27. data/lib/wiseml/setup/link.rb +20 -0
  28. data/lib/wiseml/setup/node.rb +23 -0
  29. data/lib/wiseml/setup/origin.rb +18 -0
  30. data/lib/wiseml/setup/position.rb +17 -0
  31. data/lib/wiseml/setup/rssi.rb +15 -0
  32. data/lib/wiseml/setup/setup.rb +21 -0
  33. data/lib/wiseml/setup/time_info.rb +16 -0
  34. data/lib/wiseml/trace/message.rb +15 -0
  35. data/lib/wiseml/trace/trace.rb +15 -0
  36. data/lib/wiseml/wise_ml.rb +17 -0
  37. data/test/test_xml.rb +33 -0
  38. data/test/wisebed_uzl_demo.json +3153 -0
  39. data/test/wisebed_uzl_demo.xml +3038 -0
  40. data/test/wiseml.model.xsd +89 -0
  41. data/wiseml-ruby.gemspec +20 -0
  42. metadata +122 -0
@@ -0,0 +1,89 @@
1
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://wiseml.model" xmlns:ns1="http://wiseml.model/setup" elementFormDefault="qualified" targetNamespace="http://wiseml.model">
2
+ <xs:import namespace="http://wiseml.model/setup" schemaLocation="setup.xsd"/>
3
+ <xs:element type="tns:wiseml" name="wiseml"/>
4
+ <xs:complexType name="wiseml">
5
+ <xs:sequence>
6
+ <xs:element name="setup" minOccurs="0">
7
+ <xs:complexType>
8
+ <xs:sequence>
9
+ <xs:element name="node" minOccurs="0" maxOccurs="unbounded">
10
+ <xs:complexType>
11
+ <xs:sequence>
12
+ <xs:element type="xs:string" name="id" minOccurs="0"/>
13
+ <xs:element type="ns1:capability" name="capability" minOccurs="0" maxOccurs="unbounded"/>
14
+ <xs:element name="position" minOccurs="0">
15
+ <xs:complexType>
16
+ <xs:sequence/>
17
+ <xs:attribute type="xs:float" use="required" name="x"/>
18
+ <xs:attribute type="xs:float" use="required" name="y"/>
19
+ <xs:attribute type="xs:float" use="required" name="z"/>
20
+ <xs:attribute type="xs:int" use="required" name="phi"/>
21
+ <xs:attribute type="xs:int" use="required" name="theta"/>
22
+ </xs:complexType>
23
+ </xs:element>
24
+ <xs:element type="xs:string" name="nodeType" minOccurs="0"/>
25
+ <xs:element type="xs:string" name="description" minOccurs="0"/>
26
+ <xs:element type="xs:string" name="programDetails" minOccurs="0"/>
27
+ </xs:sequence>
28
+ <xs:attribute type="xs:int" use="required" name="gateway"/>
29
+ </xs:complexType>
30
+ </xs:element>
31
+ <xs:element name="origin" minOccurs="0">
32
+ <xs:complexType>
33
+ <xs:sequence/>
34
+ <xs:attribute type="xs:float" use="required" name="x"/>
35
+ <xs:attribute type="xs:float" use="required" name="y"/>
36
+ <xs:attribute type="xs:float" use="required" name="z"/>
37
+ <xs:attribute type="xs:int" use="required" name="phi"/>
38
+ <xs:attribute type="xs:int" use="required" name="theta"/>
39
+ </xs:complexType>
40
+ </xs:element>
41
+ <xs:element name="timeinfo" minOccurs="0">
42
+ <xs:complexType>
43
+ <xs:sequence>
44
+ <xs:element type="xs:string" name="unit" minOccurs="0"/>
45
+ </xs:sequence>
46
+ <xs:attribute type="xs:dateTime" name="start"/>
47
+ <xs:attribute type="xs:dateTime" name="end"/>
48
+ <xs:attribute type="xs:int" use="required" name="duration"/>
49
+ </xs:complexType>
50
+ </xs:element>
51
+ <xs:element type="xs:string" name="interpolation" minOccurs="0"/>
52
+ <xs:element type="xs:string" name="description" minOccurs="0"/>
53
+ <xs:element name="link" minOccurs="0" maxOccurs="unbounded">
54
+ <xs:complexType>
55
+ <xs:sequence>
56
+ <xs:element type="xs:string" name="source" minOccurs="0"/>
57
+ <xs:element type="xs:string" name="target" minOccurs="0"/>
58
+ <xs:element type="ns1:capability" name="capability" minOccurs="0" maxOccurs="unbounded"/>
59
+ <xs:element name="rssi" minOccurs="0">
60
+ <xs:complexType>
61
+ <xs:sequence>
62
+ <xs:element type="xs:string" name="datatype" minOccurs="0"/>
63
+ <xs:element type="xs:string" name="unit" minOccurs="0"/>
64
+ </xs:sequence>
65
+ </xs:complexType>
66
+ </xs:element>
67
+ </xs:sequence>
68
+ <xs:attribute type="xs:boolean" use="required" name="encrypted"/>
69
+ <xs:attribute type="xs:boolean" use="required" name="virtual"/>
70
+ </xs:complexType>
71
+ </xs:element>
72
+ </xs:sequence>
73
+ </xs:complexType>
74
+ </xs:element>
75
+ <xs:element name="scenario" minOccurs="0">
76
+ <xs:complexType>
77
+ <xs:sequence/>
78
+ <xs:attribute type="xs:int" use="required" name="id"/>
79
+ </xs:complexType>
80
+ </xs:element>
81
+ <xs:element name="trace" minOccurs="0">
82
+ <xs:complexType>
83
+ <xs:sequence/>
84
+ <xs:attribute type="xs:int" use="required" name="id"/>
85
+ </xs:complexType>
86
+ </xs:element>
87
+ </xs:sequence>
88
+ </xs:complexType>
89
+ </xs:schema>
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Marvin Frick"]
6
+ gem.email = ["frick@informatik.uni-luebeck.de"]
7
+ gem.description = %q{Ruby implementation of WiseML}
8
+ gem.summary = %q{Use this gem to read and write a WiseML document}
9
+ gem.homepage = ""
10
+
11
+ gem.add_dependency('nokogiri')
12
+ gem.add_dependency('roxml')
13
+
14
+ gem.files = `git ls-files`.split($\)
15
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
+ gem.name = "wiseml-ruby"
18
+ gem.require_paths = ["lib"]
19
+ gem.version = WiseML::VERSION
20
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wiseml-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Marvin Frick
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: nokogiri
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: roxml
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Ruby implementation of WiseML
47
+ email:
48
+ - frick@informatik.uni-luebeck.de
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - Gemfile
55
+ - README.md
56
+ - Rakefile
57
+ - lib/version.rb
58
+ - lib/wise_ml.rb
59
+ - lib/wiseconfig/application.rb
60
+ - lib/wiseconfig/configuration.rb
61
+ - lib/wiseconfig/nodename.rb
62
+ - lib/wiseconfig/nodes.rb
63
+ - lib/wiseconfig/portal_app.rb
64
+ - lib/wiseconfig/protobuf_interface.rb
65
+ - lib/wiseconfig/server_connection.rb
66
+ - lib/wiseconfig/testbed_configuration.rb
67
+ - lib/wiseconfig/web_service.rb
68
+ - lib/wiseconfig/wsn_device.rb
69
+ - lib/wiseml/all.rb
70
+ - lib/wiseml/scenario/disable_link.rb
71
+ - lib/wiseml/scenario/disable_node.rb
72
+ - lib/wiseml/scenario/enable_link.rb
73
+ - lib/wiseml/scenario/enable_node.rb
74
+ - lib/wiseml/scenario/scenario.rb
75
+ - lib/wiseml/scenario/timestamp.rb
76
+ - lib/wiseml/setup/capability.rb
77
+ - lib/wiseml/setup/data.rb
78
+ - lib/wiseml/setup/defaults.rb
79
+ - lib/wiseml/setup/link.rb
80
+ - lib/wiseml/setup/node.rb
81
+ - lib/wiseml/setup/origin.rb
82
+ - lib/wiseml/setup/position.rb
83
+ - lib/wiseml/setup/rssi.rb
84
+ - lib/wiseml/setup/setup.rb
85
+ - lib/wiseml/setup/time_info.rb
86
+ - lib/wiseml/trace/message.rb
87
+ - lib/wiseml/trace/trace.rb
88
+ - lib/wiseml/wise_ml.rb
89
+ - test/test_xml.rb
90
+ - test/wisebed_uzl_demo.json
91
+ - test/wisebed_uzl_demo.xml
92
+ - test/wiseml.model.xsd
93
+ - wiseml-ruby.gemspec
94
+ homepage: ''
95
+ licenses: []
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubyforge_project:
114
+ rubygems_version: 1.8.24
115
+ signing_key:
116
+ specification_version: 3
117
+ summary: Use this gem to read and write a WiseML document
118
+ test_files:
119
+ - test/test_xml.rb
120
+ - test/wisebed_uzl_demo.json
121
+ - test/wisebed_uzl_demo.xml
122
+ - test/wiseml.model.xsd