diff options
author | i08005 <i08005@4478ddc8-7591-0410-85af-75e9d0d8dff3> | 2011-02-15 20:40:19 +0000 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2011-05-11 23:10:10 +0200 |
commit | 25fe33409f24006ddaecdeb07c2a685f4d516945 (patch) | |
tree | 4b696d7fe79ae5e7b4b56dfc0444862e93a29c35 /files | |
parent | b46373146c35c892a6e8ca802d96095e67f6128e (diff) | |
download | studienarbeit-2011-25fe33409f24006ddaecdeb07c2a685f4d516945.tar.gz studienarbeit-2011-25fe33409f24006ddaecdeb07c2a685f4d516945.zip |
Vorabversion Studienarbeit 2/2011 KSM Eclipse-RCP
Diffstat (limited to 'files')
-rw-r--r-- | files/example-1.xml | 42 | ||||
-rw-r--r-- | files/ksm-1.xsd | 238 | ||||
-rw-r--r-- | files/ksm-example.xml | 109 | ||||
-rw-r--r-- | files/umlstuff.zargo | bin | 0 -> 6300 bytes |
4 files changed, 389 insertions, 0 deletions
diff --git a/files/example-1.xml b/files/example-1.xml new file mode 100644 index 0000000..e334856 --- /dev/null +++ b/files/example-1.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<ksm xmlns="http://hb.dhbw-stuttgart.de/~ksm/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://hb.dhbw-stuttgart.de/~ksm/1.0 ksm-1.0.xsd" + version="1.0"> + <nodegroup id="root"> + <node id="56-7567-567567-657657-567"> + <properties> + <string name="visual.caption">a node</string> + <string name="visual.color">#ffeecc</string> + <integer name="visual.pos_x">420</integer> + <integer name="visual.pos_y">420</integer> + </properties> + <connections /> + </node> + + <nodegroup id="0123123-123123-123123-123213"> + <node id="56-7567-12345-657657-567"> + <properties> + <string name="visual.color">#ffeecc</string> + <integer name="visual.pos_x">420</integer> + <integer name="visual.pos_y">420</integer> + </properties> + <connections> + <connection to="56-7567-567567-657657-567"> + <properties> + <string name="visual.caption">A Connection</string> + <string name="visual.color">#ffeecc</string> + <integer name="data.weight">5</integer> + </properties> + </connection> + </connections> + </node> + <properties> + <string name="visual.caption">a Hierarchy</string> + <string name="visual.color">#ffeecc</string> + <integer name="visual.pos_x">420</integer> + <integer name="visual.pos_y">420</integer> + </properties> + </nodegroup> + <properties /> + </nodegroup> +</ksm> diff --git a/files/ksm-1.xsd b/files/ksm-1.xsd new file mode 100644 index 0000000..d0d872b --- /dev/null +++ b/files/ksm-1.xsd @@ -0,0 +1,238 @@ +<?xml version="1.0" encoding="UTF-8"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ba-horb.de/~ksm/xml/ksm-1" + xmlns:tns="http://www.ba-horb.de/~ksm/xml/ksm-1" elementFormDefault="qualified" + xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="1.0"> + + <!-- Wurzelelement eines KSM Dokument --> + <element name="ksm"> + <complexType> + <annotation> + <appinfo> + <jxb:class name="XKSM" /> + </appinfo> + </annotation> + <sequence> + <element name="nodegroup" type="tns:NODEGROUP_TYPE" + minOccurs="1" maxOccurs="1"> + </element> + <element name="properties" type="tns:PROPERTIES_TYPE" + minOccurs="0" maxOccurs="1"></element> + </sequence> + <attribute name="version" type="string" use="required" /> + </complexType> + </element> + + <complexType name="PROPERTY_BASE_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyBase" /> + </appinfo> + </annotation> + <simpleContent> + <extension base="anySimpleType"> + <attribute name="name" use="required" /> + </extension> + </simpleContent> + </complexType> + + <complexType name="PROPERTY_STRING_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyString" /> + </appinfo> + </annotation> + <simpleContent> + <extension base="string"> + <attribute name="name" use="required" /> + </extension> + </simpleContent> + </complexType> + + <complexType name="PROPERTY_BOOLEAN_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyBoolean" /> + </appinfo> + </annotation> + <simpleContent> + <extension base="boolean"> + <attribute name="name" use="required" /> + </extension> + </simpleContent> + </complexType> + + <complexType name="PROPERTY_DECIMAL_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyDecimal" /> + </appinfo> + </annotation> + <simpleContent> + <extension base="decimal"> + <attribute name="name" use="required" /> + </extension> + </simpleContent> + </complexType> + + <complexType name="PROPERTY_INTEGER_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyInteger" /> + </appinfo> + </annotation> + <simpleContent> + <extension base="integer"> + <attribute name="name" use="required" /> + </extension> + </simpleContent> + </complexType> + + <complexType name="PROPERTY_LIST_BASE_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyBaseList" /> + </appinfo> + </annotation> + <sequence> + </sequence> + <attribute name="name" use="required"></attribute> + </complexType> + + <complexType name="PROPERTY_STRING_LIST_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyStringList" /> + </appinfo> + </annotation> + <complexContent> + <extension base="tns:PROPERTY_LIST_BASE_TYPE"> + <sequence> + <element name="value" type="string" minOccurs="0" + maxOccurs="unbounded" /> + </sequence> + </extension> + </complexContent> + </complexType> + + <complexType name="PROPERTY_DECIMAL_LIST_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyDecimalList" /> + </appinfo> + </annotation> + <complexContent> + <extension base="tns:PROPERTY_LIST_BASE_TYPE"> + <sequence> + <element name="value" type="decimal" minOccurs="0" + maxOccurs="unbounded" /> + </sequence> + </extension> + </complexContent> + </complexType> + <complexType name="PROPERTY_INTEGER_LIST_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XPropertyIntegerList" /> + </appinfo> + </annotation> + <complexContent> + <extension base="tns:PROPERTY_LIST_BASE_TYPE"> + <sequence> + <element name="value" type="integer" minOccurs="0" + maxOccurs="unbounded" /> + </sequence> + </extension> + </complexContent> + </complexType> + + <!-- EinelListe von Eigenschaften --> + <complexType name="PROPERTIES_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XProperties" /> + </appinfo> + </annotation> + <sequence> + <element name="string" type="tns:PROPERTY_STRING_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + <element name="decimal" type="tns:PROPERTY_DECIMAL_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + <element name="integer" type="tns:PROPERTY_INTEGER_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + <element name="boolean" type="tns:PROPERTY_BOOLEAN_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + <element name="stringList" type="tns:PROPERTY_STRING_LIST_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + <element name="decimalList" type="tns:PROPERTY_DECIMAL_LIST_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + <element name="integerList" type="tns:PROPERTY_INTEGER_LIST_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + </sequence> + </complexType> + + <!-- KSM Node (Knoten), hat Eigenschaften, hat Verbindungen zu anderen Knoten --> + <complexType name="NODE_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XNode" /> + </appinfo> + </annotation> + <sequence> + <element name="properties" type="tns:PROPERTIES_TYPE" + minOccurs="1" maxOccurs="1" /> + <element name="connections" type="tns:CONNECTIONS_TYPE" + minOccurs="0" maxOccurs="1" /> + </sequence> + <attribute name="id" type="tns:NODE_ID_TYPE" use="required" /> + </complexType> + + <!-- Eine NodeGroup fasst mehrere Knoten zusammen, auch bekannt als Hirachien --> + <complexType name="NODEGROUP_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XNodeGroup" /> + </appinfo> + </annotation> + <sequence> + <element name="node" type="tns:NODE_TYPE" minOccurs="0" + maxOccurs="unbounded" /> + <element name="nodegroup" type="tns:NODEGROUP_TYPE" + minOccurs="0" maxOccurs="unbounded"></element> + <element name="properties" type="tns:PROPERTIES_TYPE" + minOccurs="1" maxOccurs="1" /> + </sequence> + <attribute name="id" type="tns:NODE_ID_TYPE" use="required" /> + </complexType> + + <!-- Connections. Eine Node eine beliebige Anzahl gerichteter Verbindungen + zu einer anderen Node haben --> + <complexType name="CONNECTIONS_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XConnections" /> + </appinfo> + </annotation> + <sequence> + <element name="connection" type="tns:CONNECTION_TYPE" + minOccurs="0" maxOccurs="unbounded" /> + </sequence> + </complexType> + + <!-- Eine gerichtete Verbindung zu einer anderen Node. --> + <complexType name="CONNECTION_TYPE"> + <annotation> + <appinfo> + <jxb:class name="XConnection" /> + </appinfo> + </annotation> + <sequence> + <element name="properties" type="tns:PROPERTIES_TYPE" + minOccurs="1" maxOccurs="1" /> + </sequence> + <attribute name="to" type="tns:NODE_ID_TYPE" /> + </complexType> + + <simpleType name="NODE_ID_TYPE"> + <restriction base="string"></restriction> + </simpleType> +</schema>
\ No newline at end of file diff --git a/files/ksm-example.xml b/files/ksm-example.xml new file mode 100644 index 0000000..d7c7f8c --- /dev/null +++ b/files/ksm-example.xml @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<KyberneticSystemModel> + <nodes> + <node> + <node_ID>0</node_ID> + <x_pos>469</x_pos> + <y_pos>423</y_pos> + <name>new_Node_0</name> + <comment /> + <allowModeration>false</allowModeration> + <moderationsteps>1</moderationsteps> + <Moderation>1.0</Moderation> + <adaptionRate>0.2</adaptionRate> + <Reaction>1.0</Reaction> + <moderationMethod>linear</moderationMethod> + <color>White</color> + <std_height>50</std_height> + <std_width>220</std_width> + <bShowProgressBar>true</bShowProgressBar> + <bCustomizeNodeTransparent>false</bCustomizeNodeTransparent> + <bCustomizeNodeBorder>true</bCustomizeNodeBorder> + <iTextVerticalFactor>33</iTextVerticalFactor> + <sIconPath /> + <scaleFct> + </scaleFct> + <belongsToHierarchy>0</belongsToHierarchy> + <hierarchyDepth>0</hierarchyDepth> + <useScaleFct>false</useScaleFct> + <inWeightEdges> + <inWeightEdge> + <tupel_value>0.0</tupel_value> + </inWeightEdge> + <inWeightEdge> + <tupel_value>1.0</tupel_value> + </inWeightEdge> + <inWeightEdge> + <tupel_value>0.0</tupel_value> + </inWeightEdge> + </inWeightEdges> + <UserValue> + <tupel_value>3.0</tupel_value> + </UserValue> + <MinValue> + <tupel_value>0.0</tupel_value> + </MinValue> + <MaxValue> + <tupel_value>5.0</tupel_value> + </MaxValue> + <extern> + <tupel_value>0.0</tupel_value> + </extern> + <scaleCoeffizient>1.0</scaleCoeffizient> + </node> + <node> + <node_ID>1</node_ID> + <x_pos>299</x_pos> + <y_pos>216</y_pos> + <name>new_Node_1</name> + ... + </node> + </nodes> + <arrows> + <arrow> + <start_node>1</start_node> + <end_node>0</end_node> + <start_pos>6</start_pos> + <end_pos>1</end_pos> + <bend_xpos>497</bend_xpos> + <bend_ypos>313</bend_ypos> + <saved>true</saved> + <funcType>gui.functions.FuncStraightLine</funcType> + <arrowfunction> + <m>1.0</m> + <b>0.0</b> + <position>0</position> + <FuncDraggingPoints> + <FuncDraggingPoint> + <moveHorz>false</moveHorz> + <moveVert>true</moveVert> + <first>true</first> + <last>false</last> + <funcPx>0.0</funcPx> + <funcPy>0.0</funcPy> + </FuncDraggingPoint> + <FuncDraggingPoint> + <moveHorz>false</moveHorz> + <moveVert>true</moveVert> + <first>false</first> + <last>true</last> + <funcPx>1.0</funcPx> + <funcPy>1.0</funcPy> + </FuncDraggingPoint> + </FuncDraggingPoints> + </arrowfunction> + </arrow> + <arrow> + <start_node>0</start_node> + <end_node>2</end_node> + <start_pos>3</start_pos> + <end_pos>8</end_pos> + <bend_xpos>674</bend_xpos> + <bend_ypos>388</bend_ypos> + <saved>true</saved> + <funcType>gui.functions.FuncStraightLine</funcType> + ... + </arrow> + </arrows> + <hierarchies /> +</KyberneticSystemModel>
\ No newline at end of file diff --git a/files/umlstuff.zargo b/files/umlstuff.zargo Binary files differnew file mode 100644 index 0000000..bebc024 --- /dev/null +++ b/files/umlstuff.zargo |