Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SDT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAS
SDT
Commits
594a1487
Commit
594a1487
authored
10 years ago
by
AS
Browse files
Options
Downloads
Patches
Plain Diff
added testing xmls
parent
801dc905
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SDT/schema/test/dal-core.xml
+35
-0
35 additions, 0 deletions
SDT/schema/test/dal-core.xml
SDT/schema/test/dal-eg.xml
+65
-0
65 additions, 0 deletions
SDT/schema/test/dal-eg.xml
with
100 additions
and
0 deletions
SDT/schema/test/dal-core.xml
0 → 100644
+
35
−
0
View file @
594a1487
<?xml version="1.0" encoding="iso-8859-1"?>
<Domain
xmlns=
"http://hgi.org/xml/dal/1.0"
id=
"hgi.dal.core"
>
<Modules>
<ModuleClass
name=
"BooleanState"
>
<Doc>
<tt>
BooleanState
</tt>
is the preferred module for modelling a
functionality corresponding to an underlying binary state. This
module should be used to abstract away from the actual datatype
and values in question. Note that the module does not define whether
the execution mode is blocking or non-blocking.
</Doc>
<Actions>
<Action
name=
"get"
type=
"boolean"
>
<Doc>
Obtain the current associated state.
</Doc>
</Action>
<Action
name=
"setTarget"
>
<Doc>
Set the associated state to the specified value.
</Doc>
<Arg
name=
"value"
type=
"boolean"
>
<Doc>
The desired value of the associated state.
</Doc>
</Arg>
</Action>
</Actions>
</ModuleClass>
</Modules>
</Domain>
This diff is collapsed.
Click to expand it.
SDT/schema/test/dal-eg.xml
0 → 100644
+
65
−
0
View file @
594a1487
<?xml version="1.0" encoding="iso-8859-1"?>
<Domain
xmlns:xi=
"http://www.w3.org/2001/XInclude"
xmlns=
"http://hgi.org/xml/dal/1.0"
id=
"com.telekom"
>
<Imports>
<xi:include
href=
"./dal-core.xml"
parse=
"xml"
/>
</Imports>
<Modules>
</Modules>
<Devices>
<Device
id=
"switch.power"
>
<DeviceInfo>
<Name>
PowerSwitch
</Name>
<!-- The Vendor field should probably be part of the domain -->
<Vendor>
Telekom Innovation Laboratories
</Vendor>
</DeviceInfo>
<Doc>
This device is intended as a demonstration of how to use the
abstract modules defined in the
<em>
HGI Core
</em>
domain. The
vendor has provided a proprietry module with two operations
<tt>
on
</tt>
and
<tt>
off
</tt>
. This is clearly a candidate for the
module class
<tt>
BooleanState
</tt>
.
</Doc>
<Modules>
<Module
name=
"proprietaryPower"
>
<Doc>
The proprietry interface for turning the switch on and off.
Actions for setting the state to
<tt>
on
</tt>
or
<tt>
off
</tt>
and for querying the state.
</Doc>
<Actions>
<Action
name=
"on"
>
<Doc>
Turn the switch on.
</Doc>
</Action>
<Action
name=
"off"
>
<Doc>
Turn the switch off.
</Doc>
</Action>
<Action
name=
"state"
type=
"string"
>
<Doc>
Query the state of the switch. Returns the string "
<tt>
on
</tt>
"
or "
<tt>
off
</tt>
".
</Doc>
</Action>
</Actions>
</Module>
<Module
name=
"power"
>
<extends
domain=
"hgi.dal.core"
class=
"BooleanState"
/>
</Module>
</Modules>
</Device>
</Devices>
</Domain>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment