openagent 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +64 -0
- data/lib/openagent.rb +4 -0
- data/lib/openagent/agent.rb +24 -0
- data/lib/openagent/client.rb +170 -0
- data/lib/openagent/errors.rb +30 -0
- data/lib/openagent/message_builder.rb +171 -0
- data/lib/openagent/ssl_config.rb +26 -0
- data/lib/openagent/version.rb +3 -0
- data/lib/openagent/xml_helpers.rb +24 -0
- data/lib/openagent/zone.rb +58 -0
- data/lib/sif/infra/common/application.rb +13 -0
- data/lib/sif/infra/common/condition.rb +13 -0
- data/lib/sif/infra/common/condition_group.rb +14 -0
- data/lib/sif/infra/common/data.rb +11 -0
- data/lib/sif/infra/common/error.rb +14 -0
- data/lib/sif/infra/common/event.rb +0 -0
- data/lib/sif/infra/common/event_object.rb +12 -0
- data/lib/sif/infra/common/extended_query.rb +15 -0
- data/lib/sif/infra/common/extended_query_results.rb +12 -0
- data/lib/sif/infra/common/header.rb +27 -0
- data/lib/sif/infra/common/message.rb +49 -0
- data/lib/sif/infra/common/object.rb +11 -0
- data/lib/sif/infra/common/object_data.rb +46 -0
- data/lib/sif/infra/common/other_id.rb +12 -0
- data/lib/sif/infra/common/property.rb +12 -0
- data/lib/sif/infra/common/protocol.rb +16 -0
- data/lib/sif/infra/common/provision.rb +17 -0
- data/lib/sif/infra/common/query.rb +16 -0
- data/lib/sif/infra/common/query_object.rb +12 -0
- data/lib/sif/infra/common/secure_channel.rb +12 -0
- data/lib/sif/infra/common/security.rb +13 -0
- data/lib/sif/infra/common/status.rb +16 -0
- data/lib/sif/infra/common/unprovision.rb +9 -0
- data/lib/sif/infra/common/vendor.rb +13 -0
- data/lib/sif/infra/messages/ack.rb +16 -0
- data/lib/sif/infra/messages/event.rb +12 -0
- data/lib/sif/infra/messages/get_agent_acl.rb +11 -0
- data/lib/sif/infra/messages/get_message.rb +11 -0
- data/lib/sif/infra/messages/get_zone_status.rb +10 -0
- data/lib/sif/infra/messages/ping.rb +10 -0
- data/lib/sif/infra/messages/provide.rb +16 -0
- data/lib/sif/infra/messages/provision.rb +18 -0
- data/lib/sif/infra/messages/register.rb +21 -0
- data/lib/sif/infra/messages/request.rb +16 -0
- data/lib/sif/infra/messages/responder.rb +9 -0
- data/lib/sif/infra/messages/response.rb +18 -0
- data/lib/sif/infra/messages/sleep.rb +11 -0
- data/lib/sif/infra/messages/subscribe.rb +12 -0
- data/lib/sif/infra/messages/system_control.rb +15 -0
- data/lib/sif/infra/messages/system_control_data.rb +39 -0
- data/lib/sif/infra/messages/unprovide.rb +12 -0
- data/lib/sif/infra/messages/unregister.rb +11 -0
- data/lib/sif/infra/messages/unsubscribe.rb +12 -0
- data/lib/sif/infra/messages/wakeup.rb +11 -0
- data/lib/sif/infra/messages/zone_status_role.rb +12 -0
- data/lib/sif/infra/objects/agent_acl.rb +19 -0
- data/lib/sif/infra/objects/zone_status.rb +30 -0
- data/lib/sif/models/common/address.rb +21 -0
- data/lib/sif/models/common/alert_message.rb +12 -0
- data/lib/sif/models/common/base_name.rb +12 -0
- data/lib/sif/models/common/calendar_summary.rb +28 -0
- data/lib/sif/models/common/code.rb +12 -0
- data/lib/sif/models/common/contact_info.rb +21 -0
- data/lib/sif/models/common/credits_attempted.rb +12 -0
- data/lib/sif/models/common/demographics.rb +31 -0
- data/lib/sif/models/common/dwelling_arrangement.rb +14 -0
- data/lib/sif/models/common/earned_status.rb +15 -0
- data/lib/sif/models/common/electronic_id.rb +12 -0
- data/lib/sif/models/common/email.rb +13 -0
- data/lib/sif/models/common/english_proficiency.rb +14 -0
- data/lib/sif/models/common/exceptionality_category.rb +13 -0
- data/lib/sif/models/common/grade_level.rb +12 -0
- data/lib/sif/models/common/grid_location.rb +12 -0
- data/lib/sif/models/common/identification_info.rb +12 -0
- data/lib/sif/models/common/language.rb +14 -0
- data/lib/sif/models/common/meal_status.rb +16 -0
- data/lib/sif/models/common/medical_alert_message.rb +12 -0
- data/lib/sif/models/common/meeting_time.rb +12 -0
- data/lib/sif/models/common/name.rb +19 -0
- data/lib/sif/models/common/other_code.rb +12 -0
- data/lib/sif/models/common/other_id.rb +12 -0
- data/lib/sif/models/common/phone_number.rb +15 -0
- data/lib/sif/models/common/principal_info.rb +12 -0
- data/lib/sif/models/common/race.rb +15 -0
- data/lib/sif/models/common/sced_code.rb +15 -0
- data/lib/sif/models/common/schedule_info.rb +14 -0
- data/lib/sif/models/common/schedule_info_override.rb +13 -0
- data/lib/sif/models/common/school_contact.rb +13 -0
- data/lib/sif/models/common/school_course_info_override.rb +18 -0
- data/lib/sif/models/common/street.rb +22 -0
- data/lib/sif/models/common/subject_area.rb +13 -0
- data/lib/sif/models/groups/data_model/term_span.rb +14 -0
- data/lib/sif/models/groups/sis/attendance_code_info.rb +23 -0
- data/lib/sif/models/groups/sis/calendar_date.rb +25 -0
- data/lib/sif/models/groups/sis/discipline_incident.rb +31 -0
- data/lib/sif/models/groups/sis/lea_info.rb +28 -0
- data/lib/sif/models/groups/sis/personal_representer.rb +22 -0
- data/lib/sif/models/groups/sis/school_course_info.rb +30 -0
- data/lib/sif/models/groups/sis/school_info.rb +32 -0
- data/lib/sif/models/groups/sis/section_info.rb +26 -0
- data/lib/sif/models/groups/sis/sis_representer.rb +15 -0
- data/lib/sif/models/groups/sis/staff_personal.rb +20 -0
- data/lib/sif/models/groups/sis/student_personal.rb +37 -0
- data/lib/sif/models/groups/sis/student_section_enrollment.rb +21 -0
- data/lib/sif/models/groups/sis/term_info.rb +29 -0
- data/lib/sif/representations/infra/common/application.rb +16 -0
- data/lib/sif/representations/infra/common/condition.rb +16 -0
- data/lib/sif/representations/infra/common/condition_group.rb +18 -0
- data/lib/sif/representations/infra/common/data.rb +17 -0
- data/lib/sif/representations/infra/common/error.rb +17 -0
- data/lib/sif/representations/infra/common/event.rb +0 -0
- data/lib/sif/representations/infra/common/event_object.rb +15 -0
- data/lib/sif/representations/infra/common/extended_query.rb +18 -0
- data/lib/sif/representations/infra/common/extended_query_results.rb +15 -0
- data/lib/sif/representations/infra/common/header.rb +23 -0
- data/lib/sif/representations/infra/common/message.rb +54 -0
- data/lib/sif/representations/infra/common/object.rb +14 -0
- data/lib/sif/representations/infra/common/object_data.rb +43 -0
- data/lib/sif/representations/infra/common/other_id.rb +15 -0
- data/lib/sif/representations/infra/common/property.rb +15 -0
- data/lib/sif/representations/infra/common/protocol.rb +22 -0
- data/lib/sif/representations/infra/common/provision.rb +38 -0
- data/lib/sif/representations/infra/common/query.rb +24 -0
- data/lib/sif/representations/infra/common/query_object.rb +15 -0
- data/lib/sif/representations/infra/common/secure_channel.rb +15 -0
- data/lib/sif/representations/infra/common/security.rb +18 -0
- data/lib/sif/representations/infra/common/status.rb +18 -0
- data/lib/sif/representations/infra/messages/ack.rb +25 -0
- data/lib/sif/representations/infra/messages/event.rb +19 -0
- data/lib/sif/representations/infra/messages/get_message.rb +12 -0
- data/lib/sif/representations/infra/messages/ping.rb +13 -0
- data/lib/sif/representations/infra/messages/provide.rb +19 -0
- data/lib/sif/representations/infra/messages/provision.rb +37 -0
- data/lib/sif/representations/infra/messages/register.rb +30 -0
- data/lib/sif/representations/infra/messages/request.rb +24 -0
- data/lib/sif/representations/infra/messages/response.rb +29 -0
- data/lib/sif/representations/infra/messages/sleep.rb +14 -0
- data/lib/sif/representations/infra/messages/subscribe.rb +19 -0
- data/lib/sif/representations/infra/messages/system_control.rb +23 -0
- data/lib/sif/representations/infra/messages/system_control_data.rb +31 -0
- data/lib/sif/representations/infra/messages/wakeup.rb +14 -0
- data/lib/sif/representations/models/common/address.rb +24 -0
- data/lib/sif/representations/models/common/alert_message.rb +16 -0
- data/lib/sif/representations/models/common/contact_info.rb +28 -0
- data/lib/sif/representations/models/common/credits_attempted.rb +15 -0
- data/lib/sif/representations/models/common/demographics.rb +43 -0
- data/lib/sif/representations/models/common/dwelling_arrangement.rb +18 -0
- data/lib/sif/representations/models/common/electronic_id.rb +16 -0
- data/lib/sif/representations/models/common/email.rb +16 -0
- data/lib/sif/representations/models/common/english_proficiency.rb +17 -0
- data/lib/sif/representations/models/common/identification_info.rb +16 -0
- data/lib/sif/representations/models/common/language.rb +19 -0
- data/lib/sif/representations/models/common/medical_alert_message.rb +15 -0
- data/lib/sif/representations/models/common/meeting_time.rb +16 -0
- data/lib/sif/representations/models/common/name.rb +22 -0
- data/lib/sif/representations/models/common/other_code.rb +15 -0
- data/lib/sif/representations/models/common/other_id.rb +15 -0
- data/lib/sif/representations/models/common/phone_number.rb +18 -0
- data/lib/sif/representations/models/common/principal_info.rb +15 -0
- data/lib/sif/representations/models/common/race.rb +18 -0
- data/lib/sif/representations/models/common/sced_code.rb +18 -0
- data/lib/sif/representations/models/common/schedule_info.rb +19 -0
- data/lib/sif/representations/models/common/schedule_info_override.rb +18 -0
- data/lib/sif/representations/models/common/school_contact.rb +17 -0
- data/lib/sif/representations/models/common/school_course_info_override.rb +21 -0
- data/lib/sif/representations/models/common/street.rb +26 -0
- data/lib/sif/representations/models/common/subject_area.rb +17 -0
- data/lib/sif/representations/models/groups/data_model/term_span.rb +20 -0
- data/lib/sif/representations/models/groups/sis/personal_representer.rb +38 -0
- data/lib/sif/representations/models/groups/sis/school_course_info.rb +36 -0
- data/lib/sif/representations/models/groups/sis/school_info.rb +47 -0
- data/lib/sif/representations/models/groups/sis/section_info.rb +29 -0
- data/lib/sif/representations/models/groups/sis/sis_representer.rb +17 -0
- data/lib/sif/representations/models/groups/sis/staff_personal.rb +19 -0
- data/lib/sif/representations/models/groups/sis/student_personal.rb +37 -0
- data/lib/sif/representations/models/groups/sis/student_section_enrollment.rb +26 -0
- data/lib/sif/representations/models/groups/sis/term_info.rb +30 -0
- data/lib/sif/sif.rb +249 -0
- data/openagent.gemspec +33 -0
- data/spec/agent_spec.rb +32 -0
- data/spec/client_spec.rb +96 -0
- data/spec/fixtures/agent.yaml +31 -0
- data/spec/fixtures/messages/event.xml +72 -0
- data/spec/fixtures/messages/response.xml +107 -0
- data/spec/fixtures/sif/attendance_code_info.xml +9 -0
- data/spec/fixtures/sif/calendar_date.xml +22 -0
- data/spec/fixtures/sif/calendar_summary.xml +21 -0
- data/spec/fixtures/sif/demographics.xml +33 -0
- data/spec/fixtures/sif/discipline_incident.xml +70 -0
- data/spec/fixtures/sif/lea_info.xml +55 -0
- data/spec/fixtures/sif/section_info.xml +1536 -0
- data/spec/fixtures/sif/sif_header.xml +12 -0
- data/spec/fixtures/sif/sif_message__response.xml +107 -0
- data/spec/fixtures/sif/sif_object_data.xml +5 -0
- data/spec/fixtures/sif/sif_protocol.xml +3 -0
- data/spec/fixtures/sif/sif_protocol__properties.xml +10 -0
- data/spec/fixtures/sif/sif_provide.xml +9 -0
- data/spec/fixtures/sif/sif_provision.xml +33 -0
- data/spec/fixtures/sif/sif_register.xml +20 -0
- data/spec/fixtures/sif/sif_request.xml +21 -0
- data/spec/fixtures/sif/sif_response.xml +19 -0
- data/spec/fixtures/sif/sif_system_control.xml +10 -0
- data/spec/fixtures/sif/stu_pers_resp.xml +2 -0
- data/spec/fixtures/sif/student_personal.xml +42 -0
- data/spec/fixtures/zone.yaml +6 -0
- data/spec/message_builder_spec.rb +81 -0
- data/spec/response_spec.rb +35 -0
- data/spec/sif/representations/xml/header_spec.rb +30 -0
- data/spec/sif/representations/xml/message_spec.rb +20 -0
- data/spec/sif/representations/xml/object_data_spec.rb +19 -0
- data/spec/sif/representations/xml/protocol_spec.rb +34 -0
- data/spec/sif/representations/xml/provide_spec.rb +19 -0
- data/spec/sif/representations/xml/provision_spec.rb +56 -0
- data/spec/sif/representations/xml/register_spec.rb +17 -0
- data/spec/sif/representations/xml/request_spec.rb +17 -0
- data/spec/sif/representations/xml/response_spec.rb +16 -0
- data/spec/sif/representations/xml/spec_helper.rb +7 -0
- data/spec/sif/representations/xml/student_personal_spec.rb +69 -0
- data/spec/spec_helper.rb +7 -0
- data/spec/zone_spec.rb +26 -0
- metadata +455 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
require_relative 'object'
|
2
|
+
|
3
|
+
module SIF
|
4
|
+
module Representation
|
5
|
+
module Infra
|
6
|
+
module Common
|
7
|
+
class Provision < SIF::Represent
|
8
|
+
self.representation_wrap = 'SIF_Provision'
|
9
|
+
|
10
|
+
property :header, :as => 'SIF_Header',
|
11
|
+
:class => SIF::Infra::Common::Header,
|
12
|
+
:decorator => SIF::Representation::Infra::Common::Header
|
13
|
+
collection :provide_objects, :as => 'SIF_ProvideObjects',
|
14
|
+
:class => SIF::Infra::Common::Object,
|
15
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
16
|
+
collection :subscribe_objects, :as => 'SIF_SubscribeObjects',
|
17
|
+
:class => SIF::Infra::Common::Object,
|
18
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
19
|
+
collection :publish_add_objects, :as => 'SIF_PublishAddObjects',
|
20
|
+
:class => SIF::Infra::Common::Object,
|
21
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
22
|
+
collection :publish_change_objects, :as => 'SIF_PublishChangeObjects',
|
23
|
+
:class => SIF::Infra::Common::Object,
|
24
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
25
|
+
collection :publish_delete_objects, :as => 'SIF_PublishDeleteObjects',
|
26
|
+
:class => SIF::Infra::Common::Object,
|
27
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
28
|
+
collection :request_objects, :as => 'SIF_RequestObjects',
|
29
|
+
:class => SIF::Infra::Common::Object,
|
30
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
31
|
+
collection :respond_objects, :as => 'SIF_RespondObjects',
|
32
|
+
:class => SIF::Infra::Common::Object,
|
33
|
+
:decorator => SIF::Representation::Infra::Common::Object
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative 'query_object'
|
2
|
+
require_relative 'condition_group'
|
3
|
+
|
4
|
+
module SIF
|
5
|
+
module Representation
|
6
|
+
module Infra
|
7
|
+
module Common
|
8
|
+
class Query < SIF::Represent
|
9
|
+
|
10
|
+
self.representation_wrap = 'SIF_Query'
|
11
|
+
|
12
|
+
property :query_object, :as => 'SIF_QueryObject',
|
13
|
+
:class => SIF::Infra::Common::QueryObject,
|
14
|
+
:decorator => QueryObject
|
15
|
+
property :condition_group, :as => 'SIF_ConditionGroup',
|
16
|
+
:class => SIF::Infra::Common::ConditionGroup,
|
17
|
+
:decorator => ConditionGroup
|
18
|
+
|
19
|
+
property :example, :as => 'SIF_Example'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Common
|
5
|
+
class QueryObject < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_QueryObject'
|
8
|
+
|
9
|
+
property :object_name, :as => 'ObjectName', :attribute => true
|
10
|
+
property :element, :as => 'SIF_Element'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Common
|
5
|
+
class SecureChannel < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_SecureChannel'
|
8
|
+
|
9
|
+
property :authentication_level, :as => 'SIF_AuthenticationLevel'
|
10
|
+
property :encryption_level, :as => 'SIF_EncryptionLevel'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require_relative 'secure_channel'
|
2
|
+
|
3
|
+
module SIF
|
4
|
+
module Representation
|
5
|
+
module Infra
|
6
|
+
module Common
|
7
|
+
class Security < SIF::Represent
|
8
|
+
|
9
|
+
self.representation_wrap = 'SIF_Security'
|
10
|
+
|
11
|
+
property :secure_channel, :as => :SIF_SecureChannel,
|
12
|
+
:class => SIF::Infra::Common::SecureChannel,
|
13
|
+
:decorator => SecureChannel
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Common
|
5
|
+
class Status < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Status'
|
8
|
+
|
9
|
+
property :code, :as => 'SIF_Code'
|
10
|
+
property :desc, :as => 'SIF_Desc'
|
11
|
+
property :data, :as => 'SIF_Data',
|
12
|
+
:class => SIF::Infra::Common::Data,
|
13
|
+
:decorator => Data
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Ack < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Ack'
|
8
|
+
|
9
|
+
property :original_source_id, :as => 'SIF_OriginalSourceId'
|
10
|
+
property :original_msg_id, :as => 'SIF_OriginalMsgId'
|
11
|
+
|
12
|
+
property :header, :as => 'SIF_Header',
|
13
|
+
:class => SIF::Infra::Common::Header,
|
14
|
+
:decorator => Infra::Common::Header
|
15
|
+
property :status, :as => 'SIF_Status',
|
16
|
+
:class => SIF::Infra::Common::Status,
|
17
|
+
:decorator => Infra::Common::Status
|
18
|
+
property :error, :as => 'SIF_Error',
|
19
|
+
:class => SIF::Infra::Common::Error,
|
20
|
+
:decorator => Infra::Common::Error
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Event < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Event'
|
8
|
+
|
9
|
+
property :header, :as => :SIF_Header,
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
property :object_data, :as => :SIF_ObjectData,
|
13
|
+
:class => SIF::Infra::Common::ObjectData,
|
14
|
+
:decorator => Infra::Common::ObjectData
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Provide < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Provide'
|
8
|
+
|
9
|
+
property :header, :as => :SIF_Header,
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
collection :objects, :as => :SIF_Object,
|
13
|
+
:class => SIF::Infra::Common::Object,
|
14
|
+
:decorator => Infra::Common::Object
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Provision < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Provision'
|
8
|
+
|
9
|
+
property :header, :as => :SIF_Header,
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
collection :provide_objects, :as => :SIF_Object, :wrap => :SIF_ProvideObjects,
|
13
|
+
:class => SIF::Infra::Common::Object,
|
14
|
+
:decorator => Infra::Common::Object
|
15
|
+
collection :subscribe_objects, :as => :SIF_Object, :wrap => :SIF_SubscribeObjects,
|
16
|
+
:class => SIF::Infra::Common::Object,
|
17
|
+
:decorator => Infra::Common::Object
|
18
|
+
collection :publish_add_objects, :as => :SIF_Object, :wrap => :SIF_PublishAddObjects,
|
19
|
+
:class => SIF::Infra::Common::Object,
|
20
|
+
:decorator => Infra::Common::Object
|
21
|
+
collection :publish_change_objects, :as => :SIF_Object, :wrap => :SIF_PublishChangeObjects,
|
22
|
+
:class => SIF::Infra::Common::Object,
|
23
|
+
:decorator => Infra::Common::Object
|
24
|
+
collection :publish_delete_objects, :as => :SIF_Object, :wrap => :SIF_PublishDeleteObjects,
|
25
|
+
:class => SIF::Infra::Common::Object,
|
26
|
+
:decorator => Infra::Common::Object
|
27
|
+
collection :request_objects, :as => :SIF_Object, :wrap => :SIF_RequestObjects,
|
28
|
+
:class => SIF::Infra::Common::Object,
|
29
|
+
:decorator => Infra::Common::Object
|
30
|
+
collection :respond_objects, :as => :SIF_Object, :wrap => :SIF_RespondObjects,
|
31
|
+
:class => SIF::Infra::Common::Object,
|
32
|
+
:decorator => Infra::Common::Object
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Register < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Register'
|
8
|
+
|
9
|
+
property :header, :as => 'SIF_Header',
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
property :protocol, :as => 'SIF_Protocol',
|
13
|
+
:class => SIF::Infra::Common::Protocol,
|
14
|
+
:decorator => Infra::Common::Protocol
|
15
|
+
property :application, :as => 'SIF_Application',
|
16
|
+
:class => SIF::Infra::Common::Application,
|
17
|
+
:decorator => Infra::Common::Application
|
18
|
+
|
19
|
+
property :name, :as => 'SIF_Name'
|
20
|
+
property :version, :as => 'SIF_Version'
|
21
|
+
property :max_buffer_size, :as => 'SIF_MaxBufferSize'
|
22
|
+
property :mode, :as => 'SIF_Mode'
|
23
|
+
property :node_vendor, :as => 'SIF_NodeVendor'
|
24
|
+
property :node_version, :as => 'SIF_NodeVersion'
|
25
|
+
property :icon, :as => 'SIF_Icon'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Request < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Request'
|
8
|
+
|
9
|
+
property :header, :as => 'SIF_Header',
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
property :version, :as => 'SIF_Version'
|
13
|
+
property :max_buffer_size, :as => 'SIF_MaxBufferSize'
|
14
|
+
property :query, :as => 'SIF_Query',
|
15
|
+
:class => SIF::Infra::Common::Query,
|
16
|
+
:decorator => Infra::Common::Query
|
17
|
+
property :extended_query, :as => 'SIF_ExtendedQuery',
|
18
|
+
:class => SIF::Infra::Common::ExtendedQuery,
|
19
|
+
:decorator => Infra::Common::ExtendedQuery
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Response < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Response'
|
8
|
+
|
9
|
+
property :header, :as => 'SIF_Header',
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
property :error, :as => 'SIF_Error',
|
13
|
+
:class => SIF::Infra::Common::Error,
|
14
|
+
:decorator => Infra::Common::Error
|
15
|
+
property :object_data, :as => 'SIF_ObjectData',
|
16
|
+
:class => SIF::Infra::Common::ObjectData,
|
17
|
+
:decorator => Infra::Common::ObjectData
|
18
|
+
property :extended_query_results, :as => 'SIF_ExtendedQueryResults',
|
19
|
+
:class => SIF::Infra::Common::ExtendedQueryResults,
|
20
|
+
:decorator => Infra::Common::ExtendedQueryResults
|
21
|
+
|
22
|
+
property :request_msg_id, :as => 'SIF_RequestMsgId'
|
23
|
+
property :packet_number, :as => 'SIF_PacketNumber'
|
24
|
+
property :more_packets, :as => 'SIF_MorePackets'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module SIF
|
2
|
+
module Representation
|
3
|
+
module Infra
|
4
|
+
module Message
|
5
|
+
class Subscribe < SIF::Represent
|
6
|
+
|
7
|
+
self.representation_wrap = 'SIF_Subscribe'
|
8
|
+
|
9
|
+
property :header, :as => :SIF_Header,
|
10
|
+
:class => SIF::Infra::Common::Header,
|
11
|
+
:decorator => Infra::Common::Header
|
12
|
+
property :object, :as => :SIF_Object,
|
13
|
+
:class => SIF::Infra::Common::Object,
|
14
|
+
:decorator => Infra::Common::Object
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative 'system_control_data'
|
2
|
+
|
3
|
+
module SIF
|
4
|
+
module Representation
|
5
|
+
module Infra
|
6
|
+
module Message
|
7
|
+
class SystemControl < SIF::Represent
|
8
|
+
|
9
|
+
self.representation_wrap = 'SIF_SystemControl'
|
10
|
+
|
11
|
+
property :header, :as => 'SIF_Header',
|
12
|
+
:class => SIF::Infra::Common::Header,
|
13
|
+
:decorator => Infra::Common::Header
|
14
|
+
|
15
|
+
property :system_control_data, :as => 'SIF_SystemControlData',
|
16
|
+
:class => SIF::Infra::Message::SystemControlData,
|
17
|
+
:decorator => Infra::Message::SystemControlData
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative 'get_message'
|
2
|
+
require_relative 'ping'
|
3
|
+
require_relative 'sleep'
|
4
|
+
require_relative 'wakeup'
|
5
|
+
|
6
|
+
module SIF
|
7
|
+
module Representation
|
8
|
+
module Infra
|
9
|
+
module Message
|
10
|
+
class SystemControlData < SIF::Represent
|
11
|
+
|
12
|
+
self.representation_wrap = 'SIF_SystemControlData'
|
13
|
+
|
14
|
+
property :get_message, :as => 'SIF_GetMessage',
|
15
|
+
:class => SIF::Infra::Message::GetMessage,
|
16
|
+
:decorator => GetMessage
|
17
|
+
property :ping, :as => 'SIF_Ping',
|
18
|
+
:class => SIF::Infra::Message::Ping,
|
19
|
+
:decorator => Ping
|
20
|
+
property :sleep, :as => 'SIF_Sleep',
|
21
|
+
:class => SIF::Infra::Message::Sleep,
|
22
|
+
:decorator => Sleep
|
23
|
+
property :wake, :as => 'SIF_Wake',
|
24
|
+
:class => SIF::Infra::Message::Wakeup,
|
25
|
+
:decorator => Wakeup
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|