From d93f587282b6f1d758f0e2920e1475fdc1620984 Mon Sep 17 00:00:00 2001 From: thomasfruehwirth Date: Tue, 7 Dec 2021 13:44:53 +0100 Subject: [PATCH] Add Instance Tests --- Uml2OpcuaTransformationTests/Aggregation.xml | 22 +- .../ChainedComposition.xml | 44 ++-- Uml2OpcuaTransformationTests/Class.csv | 1 + Uml2OpcuaTransformationTests/Class.xml | 4 +- .../ClassDiagramAndStateMachine.csv | 8 + .../ClassDiagramAndStateMachine.xml | 79 +++++--- .../CompositionWithoutMemberName.xml | 20 +- .../DirectedNamedAssociation.notation | 190 +++++++++--------- .../DirectedNamedAssociation.uml | 17 +- .../DirectedNamedAssociation.xml | 12 +- Uml2OpcuaTransformationTests/Instance.xml | 26 +-- .../InstanceWithInheritedMethod.csv | 5 + .../InstanceWithInheritedMethod.di | 2 + .../InstanceWithInheritedMethod.notation | 89 ++++++++ .../InstanceWithInheritedMethod.uml | 13 ++ .../InstanceWithInheritedMethod.xml | 51 +++++ .../InstanceWithInheritedProperty.csv | 6 + .../InstanceWithInheritedProperty.di | 2 + .../InstanceWithInheritedProperty.notation | 90 +++++++++ .../InstanceWithInheritedProperty.uml | 15 ++ .../InstanceWithInheritedProperty.xml | 64 ++++++ .../InstanceWithInstanceValueSlot.xml | 164 +++++++-------- .../Multiplicity_1_to_1n.xml | 52 ++--- .../NonPrimitiveProperty.di | 2 + .../NonPrimitiveProperty.notation | 75 +++++++ .../NonPrimitiveProperty.uml | 14 ++ .../NonPrimitiveProperty.xml | 34 ++++ Uml2OpcuaTransformationTests/Operation.xml | 129 ++++++------ Uml2OpcuaTransformationTests/PropertyClass.di | 2 + .../PropertyClass.notation | 77 +++++++ .../PropertyClass.uml | 10 + .../PropertyClass.xml | 35 ++++ .../PropertyInherited.csv | 6 + .../PropertyInherited.di | 2 + .../PropertyInherited.notation | 117 +++++++++++ .../PropertyInherited.uml | 17 ++ .../PropertyInherited.xml | 61 ++++++ .../PropertyInteger.xml | 17 +- .../PropertyString.xml | 18 +- Uml2OpcuaTransformationTests/Transition.xml | 42 ++-- 40 files changed, 1228 insertions(+), 406 deletions(-) create mode 100644 Uml2OpcuaTransformationTests/Class.csv create mode 100644 Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.csv create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.csv create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.di create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.notation create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.uml create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.xml create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.csv create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.di create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.notation create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.uml create mode 100644 Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.xml create mode 100644 Uml2OpcuaTransformationTests/NonPrimitiveProperty.di create mode 100644 Uml2OpcuaTransformationTests/NonPrimitiveProperty.notation create mode 100644 Uml2OpcuaTransformationTests/NonPrimitiveProperty.uml create mode 100644 Uml2OpcuaTransformationTests/NonPrimitiveProperty.xml create mode 100644 Uml2OpcuaTransformationTests/PropertyClass.di create mode 100644 Uml2OpcuaTransformationTests/PropertyClass.notation create mode 100644 Uml2OpcuaTransformationTests/PropertyClass.uml create mode 100644 Uml2OpcuaTransformationTests/PropertyClass.xml create mode 100644 Uml2OpcuaTransformationTests/PropertyInherited.csv create mode 100644 Uml2OpcuaTransformationTests/PropertyInherited.di create mode 100644 Uml2OpcuaTransformationTests/PropertyInherited.notation create mode 100644 Uml2OpcuaTransformationTests/PropertyInherited.uml create mode 100644 Uml2OpcuaTransformationTests/PropertyInherited.xml diff --git a/Uml2OpcuaTransformationTests/Aggregation.xml b/Uml2OpcuaTransformationTests/Aggregation.xml index 57445ef..f266acd 100644 --- a/Uml2OpcuaTransformationTests/Aggregation.xml +++ b/Uml2OpcuaTransformationTests/Aggregation.xml @@ -4,32 +4,32 @@ Aggregation - i=45 - i=40 i=37 i=58 - i=78 i=47 + i=40 + i=45 + i=78 - + Gripper1 - ns=1;s=GripperType - ns=1;s=RobotType + ns=1;i=1000 + ns=1;i=1001 ModellingRule_Mandatory - - RobotType + + GripperType BaseObjectType - ns=1;s=Gripper1 - - GripperType + + RobotType BaseObjectType + ns=1;i=1002 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/ChainedComposition.xml b/Uml2OpcuaTransformationTests/ChainedComposition.xml index ae2829e..a8682da 100644 --- a/Uml2OpcuaTransformationTests/ChainedComposition.xml +++ b/Uml2OpcuaTransformationTests/ChainedComposition.xml @@ -5,56 +5,56 @@ i=58 - i=47 + i=78 i=45 i=80 - i=37 i=40 - i=78 + i=37 + i=47 - + Program - ns=1;i=1002 - ns=1;i=1000 + ns=1;i=1004 + ns=1;i=1001 ModellingRule_Optional - - Program + + Controller ns=1;i=1002 - ns=1;i=1004 - ModellingRule_Optional + ns=1;i=1000 + ModellingRule_Mandatory + ns=1;i=1003 - - Controller + + Program - ns=1;i=1000 - ns=1;i=1003 - ModellingRule_Mandatory - ns=1;i=1005 + ns=1;i=1004 + ns=1;i=1002 + ModellingRule_Optional - - ControllerType + + RobotType BaseObjectType ns=1;i=1001 - + ProgramType BaseObjectType - - RobotType + + ControllerType BaseObjectType - ns=1;i=1004 + ns=1;i=1005 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/Class.csv b/Uml2OpcuaTransformationTests/Class.csv new file mode 100644 index 0000000..e9b96e5 --- /dev/null +++ b/Uml2OpcuaTransformationTests/Class.csv @@ -0,0 +1 @@ +Class5Type, 1000, ObjectType diff --git a/Uml2OpcuaTransformationTests/Class.xml b/Uml2OpcuaTransformationTests/Class.xml index 4519b8b..f6483c2 100644 --- a/Uml2OpcuaTransformationTests/Class.xml +++ b/Uml2OpcuaTransformationTests/Class.xml @@ -4,10 +4,10 @@ Class - i=58 i=45 + i=58 - + Class5Type BaseObjectType diff --git a/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.csv b/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.csv new file mode 100644 index 0000000..f750cc2 --- /dev/null +++ b/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.csv @@ -0,0 +1,8 @@ +Class1Type_StateMachine1_CurrentState_Id,1004,Variable +Class1Type_StateMachine1,1001,Object +Class1Type,1000,ObjectType +MyStateMachineType,1002,ObjectType +MyStateMachineType_State2,1006,Object +MyStateMachineType_State1,1005,Object +Class1Type_StateMachine1_CurrentState,1003,Variable +MyStateMachineType_State1_to_State2,1007,Object diff --git a/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.xml b/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.xml index 40bc208..9e29498 100644 --- a/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.xml +++ b/Uml2OpcuaTransformationTests/ClassDiagramAndStateMachine.xml @@ -4,69 +4,92 @@ ClassDiagramAndStateMachine - i=37 - i=2771 - i=2311 - i=47 - i=2307 - i=51 - i=52 + i=40 + i=54 + i=68 i=58 + i=51 i=78 - i=54 + i=21 + i=37 + i=2771 i=45 i=2310 - i=40 + i=17 + i=46 + i=52 + i=2760 + i=47 + i=2311 + i=2307 - + + CurrentState + + ns=1;i=1001 + FiniteStateVariableType + ModellingRule_Mandatory + ns=1;i=1004 + + + + CurrentState + + ns=1;i=1003 + PropertyType + ModellingRule_Mandatory + + + StateMachine1 - ns=1;s=MyStateMachineType + ns=1;i=1002 + ns=1;i=1000 ModellingRule_Mandatory - ns=1;s=Class1Type + ns=1;i=1003 - + Class1Type BaseObjectType - ns=1;s=StateMachine1 + ns=1;i=1001 - - State1 + + State2 StateType ModellingRule_Mandatory - ns=1;s=MyStateMachineType + ns=1;i=1002 - - State2 + + State1 StateType ModellingRule_Mandatory - ns=1;s=MyStateMachineType + ns=1;i=1002 - + State1_to_State2 TransitionType ModellingRule_Mandatory - ns=1;s=MyStateMachineType - ns=1;s=State1 - ns=1;s=State2 + ns=1;i=1002 + ns=1;i=1005 + ns=1;i=1006 TransitionEventType - + MyStateMachineType FiniteStateMachineType - ns=1;s=State2 - ns=1;s=State1 - ns=1;s=State1_to_State2 + ns=1;i=1005 + ns=1;i=1006 + ns=1;i=1007 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/CompositionWithoutMemberName.xml b/Uml2OpcuaTransformationTests/CompositionWithoutMemberName.xml index 51cd2e0..3275998 100644 --- a/Uml2OpcuaTransformationTests/CompositionWithoutMemberName.xml +++ b/Uml2OpcuaTransformationTests/CompositionWithoutMemberName.xml @@ -4,32 +4,32 @@ CompositionWithoutMemberName - i=58 i=78 - i=37 - i=45 + i=58 i=40 i=47 + i=37 + i=45 - - Controller + + - ns=1;s=ControllerType - ns=1;s=RobotType + ns=1;i=1000 ModellingRule_Mandatory + ns=1;i=1001 - + ControllerType BaseObjectType - + RobotType BaseObjectType - ns=1;s=Controller + ns=1;i=1002 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/DirectedNamedAssociation.notation b/Uml2OpcuaTransformationTests/DirectedNamedAssociation.notation index f2ae5f0..a53712c 100644 --- a/Uml2OpcuaTransformationTests/DirectedNamedAssociation.notation +++ b/Uml2OpcuaTransformationTests/DirectedNamedAssociation.notation @@ -1,68 +1,68 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -70,35 +70,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/DirectedNamedAssociation.uml b/Uml2OpcuaTransformationTests/DirectedNamedAssociation.uml index 46c5097..2296c39 100644 --- a/Uml2OpcuaTransformationTests/DirectedNamedAssociation.uml +++ b/Uml2OpcuaTransformationTests/DirectedNamedAssociation.uml @@ -3,14 +3,17 @@ - - + + + + + - - - -
+ + + +
- + diff --git a/Uml2OpcuaTransformationTests/DirectedNamedAssociation.xml b/Uml2OpcuaTransformationTests/DirectedNamedAssociation.xml index a6efe4d..b693965 100644 --- a/Uml2OpcuaTransformationTests/DirectedNamedAssociation.xml +++ b/Uml2OpcuaTransformationTests/DirectedNamedAssociation.xml @@ -8,23 +8,23 @@ i=45 i=32 - + MyAssociation NonHierarchicalReferences - - Class3Type + + Class4Type BaseObjectType + ns=1;i=1000 - - Class2Type + + Class5Type BaseObjectType - ns=1;s=Class3Type \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/Instance.xml b/Uml2OpcuaTransformationTests/Instance.xml index 2bf69c7..da3ffc3 100644 --- a/Uml2OpcuaTransformationTests/Instance.xml +++ b/Uml2OpcuaTransformationTests/Instance.xml @@ -5,30 +5,22 @@ i=45 - i=40 + i=85 i=58 - i=12 - i=47 - i=78 - i=63 - i=37 + i=40 + i=35 - - Manufacturer - - BaseDataVariableType - ModellingRule_Mandatory - ns=1;s=Class5Type - - - + Class5Type BaseObjectType - ns=1;s=Manufacturer - + Class5Instance + + ns=1;i=1000 + ObjectsFolder + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.csv b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.csv new file mode 100644 index 0000000..ad8333d --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.csv @@ -0,0 +1,5 @@ +ToolType,1000,ObjectType +Gripper1_Close,1004,Method +GripperType,1002,ObjectType +ToolType_Close,1001,Method +Gripper1,1003,Object diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.di b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.di new file mode 100644 index 0000000..8c549ee --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.di @@ -0,0 +1,2 @@ + + diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.notation b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.notation new file mode 100644 index 0000000..f28c157 --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.notation @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.uml b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.uml new file mode 100644 index 0000000..8dac19f --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.uml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.xml b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.xml new file mode 100644 index 0000000..3fe6fd2 --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedMethod.xml @@ -0,0 +1,51 @@ + + + + InstanceWithInheritedMethod + + + i=37 + i=40 + i=58 + i=85 + i=45 + i=35 + i=78 + i=47 + + + Close + + ModellingRule_Mandatory + ns=1;i=1000 + + + + ToolType + + BaseObjectType + ns=1;i=1001 + + + + GripperType + + ns=1;i=1000 + + + + Close + + ModellingRule_Mandatory + ns=1;i=1003 + + + + Gripper1 + + ns=1;i=1002 + ObjectsFolder + ns=1;i=1004 + + + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.csv b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.csv new file mode 100644 index 0000000..f5cd2f1 --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.csv @@ -0,0 +1,6 @@ +Gripper1_ToolId,1005,Variable +GripperType,1000,ObjectType +ToolType,1001,ObjectType +ToolType_ToolId,1003,Variable +GripperType_ToolId,1002,Variable +Gripper1,1004,Object diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.di b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.di new file mode 100644 index 0000000..8c549ee --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.di @@ -0,0 +1,2 @@ + + diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.notation b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.notation new file mode 100644 index 0000000..d134610 --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.notation @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.uml b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.uml new file mode 100644 index 0000000..9d647af --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.uml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.xml b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.xml new file mode 100644 index 0000000..c109566 --- /dev/null +++ b/Uml2OpcuaTransformationTests/InstanceWithInheritedProperty.xml @@ -0,0 +1,64 @@ + + + + InstanceWithInheritedProperty + + + i=45 + i=78 + i=85 + i=63 + i=58 + i=40 + i=37 + i=35 + i=47 + i=12 + + + ToolId + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1000 + + + + ToolId + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1001 + + + + GripperType + + ns=1;i=1001 + ns=1;i=1002 + + + + ToolType + + BaseObjectType + ns=1;i=1003 + + + + ToolId + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1004 + + + + Gripper1 + + ns=1;i=1000 + ObjectsFolder + ns=1;i=1005 + + + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/InstanceWithInstanceValueSlot.xml b/Uml2OpcuaTransformationTests/InstanceWithInstanceValueSlot.xml index 5132938..09c8a3b 100644 --- a/Uml2OpcuaTransformationTests/InstanceWithInstanceValueSlot.xml +++ b/Uml2OpcuaTransformationTests/InstanceWithInstanceValueSlot.xml @@ -1,83 +1,83 @@ - - - - InstanceWithInstanceValueSlot - - - i=58 - i=40 - i=85 - i=47 - i=12 - i=35 - i=37 - i=45 - i=78 - i=63 - - - Version - - BaseDataVariableType - ModellingRule_Mandatory - ns=1;i=1001 - - - - RobotController - - ns=1;i=1002 - ns=1;i=1000 - ModellingRule_Mandatory - ns=1;i=1003 - - - - Version - - BaseDataVariableType - ModellingRule_Mandatory - ns=1;i=1002 - - - - ControllerType - - BaseObjectType - ns=1;i=1004 - - - - RobotType - - BaseObjectType - ns=1;i=1001 - - - - Version - - BaseDataVariableType - ModellingRule_Mandatory - ns=1;i=1005 - - + + + + InstanceWithInstanceValueSlot + + + i=45 + i=58 + i=37 + i=63 + i=35 + i=12 + i=40 + i=78 + i=47 + i=85 + + + Version + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1000 + + + + Version + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1003 + + + + RobotController + + ns=1;i=1000 + ns=1;i=1002 + ModellingRule_Mandatory + ns=1;i=1004 + + + + RobotType + + BaseObjectType + ns=1;i=1003 + + + + ControllerType + + BaseObjectType + ns=1;i=1001 + + + + Version + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1006 + + #006002 - - - - MyControllerInstance - - ns=1;i=1002 - ns=1;i=1006 - - - - MyRobotInstance - - ns=1;i=1000 - ObjectsFolder - ns=1;i=1005 - - - \ No newline at end of file + + + + MyRobotInstance + + ns=1;i=1002 + ObjectsFolder + ns=1;i=1006 + + + + MyControllerInstance + + ns=1;i=1000 + ns=1;i=1007 + + + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/Multiplicity_1_to_1n.xml b/Uml2OpcuaTransformationTests/Multiplicity_1_to_1n.xml index 6b121e1..bfb4115 100644 --- a/Uml2OpcuaTransformationTests/Multiplicity_1_to_1n.xml +++ b/Uml2OpcuaTransformationTests/Multiplicity_1_to_1n.xml @@ -1,35 +1,35 @@ - - - - Multiplicity_1_to_1..n + + + + Multiplicity_1_to_1n - - i=40 - i=58 - i=11510 - i=47 - i=37 - i=45 + + i=40 + i=47 + i=45 + i=11510 + i=37 + i=58 - - Axis - - ns=1;s=AxisType - ns=1;s=RobotType - ModellingRule_MandatoryPlaceholder + + Axis + + ns=1;i=1002 + ns=1;i=1000 + ModellingRule_MandatoryPlaceholder - - AxisType - - BaseObjectType + + RobotType + + BaseObjectType + ns=1;i=1001 - - RobotType - - BaseObjectType - ns=1;s=Axis + + AxisType + + BaseObjectType \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/NonPrimitiveProperty.di b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.di new file mode 100644 index 0000000..8c549ee --- /dev/null +++ b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.di @@ -0,0 +1,2 @@ + + diff --git a/Uml2OpcuaTransformationTests/NonPrimitiveProperty.notation b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.notation new file mode 100644 index 0000000..4c5dafa --- /dev/null +++ b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.notation @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/NonPrimitiveProperty.uml b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.uml new file mode 100644 index 0000000..d3c3a98 --- /dev/null +++ b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.uml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/NonPrimitiveProperty.xml b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.xml new file mode 100644 index 0000000..951a144 --- /dev/null +++ b/Uml2OpcuaTransformationTests/NonPrimitiveProperty.xml @@ -0,0 +1,34 @@ + + + + PropertyString + + + i=12 + i=37 + i=63 + i=40 + i=47 + i=45 + i=58 + i=78 + + + myProperty + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;s=RobotType + + + SomeDefaultValueString + + + + RobotType + + BaseObjectType + ns=1;s=myProperty + + + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/Operation.xml b/Uml2OpcuaTransformationTests/Operation.xml index 52d2ef6..40b418e 100644 --- a/Uml2OpcuaTransformationTests/Operation.xml +++ b/Uml2OpcuaTransformationTests/Operation.xml @@ -1,103 +1,102 @@ - + Operation - i=40 - i=45 - i=6 i=46 + i=78 + i=45 + i=40 i=68 - i=37 i=58 - i=11 - i=297 - i=12 i=296 + i=37 i=47 - i=78 - + InputArguments ModellingRule_Mandatory - ns=1;s=AddNumbers + ns=1;i=1001 PropertyType - - - - Argument_Encoding_DefaultXml - - - - in2 - - Double - - -1 - - - - - - Argument_Encoding_DefaultXml - - - - in1 - - Int32 - - -1 - - - - + + + + i=297 + + + + in1 + + i=6 + + -1 + + + + + + + i=297 + + + + in2 + + i=11 + + -1 + + + + + - + OutputArguments ModellingRule_Mandatory - ns=1;s=AddNumbers + ns=1;i=1001 PropertyType - - - - Argument_Encoding_DefaultXml - - - - out1 - - String - - -1 - - - - + + + + i=297 + + + + out1 + + i=12 + + -1 + + + + + - + AddNumbers ModellingRule_Mandatory - ns=1;s=CalculatorType - ns=1;s=AddNumbersInputArguments - ns=1;s=AddNumbersOutputArguments + ns=1;i=1000 + ns=1;i=1002 + ns=1;i=1003 - + CalculatorType BaseObjectType - ns=1;s=AddNumbers + ns=1;i=1001 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/PropertyClass.di b/Uml2OpcuaTransformationTests/PropertyClass.di new file mode 100644 index 0000000..8c549ee --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyClass.di @@ -0,0 +1,2 @@ + + diff --git a/Uml2OpcuaTransformationTests/PropertyClass.notation b/Uml2OpcuaTransformationTests/PropertyClass.notation new file mode 100644 index 0000000..303e483 --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyClass.notation @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/PropertyClass.uml b/Uml2OpcuaTransformationTests/PropertyClass.uml new file mode 100644 index 0000000..e70e981 --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyClass.uml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/PropertyClass.xml b/Uml2OpcuaTransformationTests/PropertyClass.xml new file mode 100644 index 0000000..8e1d959 --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyClass.xml @@ -0,0 +1,35 @@ + + + + PropertyClass + + + i=45 + i=58 + i=40 + i=37 + i=78 + i=47 + + + gripper1 + + ns=1;i=1002 + ns=1;i=1000 + ModellingRule_Mandatory + + + + GripperType + + BaseObjectType + + + + RobotType + + BaseObjectType + ns=1;i=1001 + + + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/PropertyInherited.csv b/Uml2OpcuaTransformationTests/PropertyInherited.csv new file mode 100644 index 0000000..bc53a3e --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyInherited.csv @@ -0,0 +1,6 @@ +RobotType,1004,ObjectType +ToolType_ToolId,1001,Variable +GripperType,1002,ObjectType +ToolType,1000,ObjectType +GripperType_ToolId,1003,Variable +RobotType_gripper1,1005,Object diff --git a/Uml2OpcuaTransformationTests/PropertyInherited.di b/Uml2OpcuaTransformationTests/PropertyInherited.di new file mode 100644 index 0000000..8c549ee --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyInherited.di @@ -0,0 +1,2 @@ + + diff --git a/Uml2OpcuaTransformationTests/PropertyInherited.notation b/Uml2OpcuaTransformationTests/PropertyInherited.notation new file mode 100644 index 0000000..98ea0b6 --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyInherited.notation @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/PropertyInherited.uml b/Uml2OpcuaTransformationTests/PropertyInherited.uml new file mode 100644 index 0000000..03b099e --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyInherited.uml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/Uml2OpcuaTransformationTests/PropertyInherited.xml b/Uml2OpcuaTransformationTests/PropertyInherited.xml new file mode 100644 index 0000000..8070248 --- /dev/null +++ b/Uml2OpcuaTransformationTests/PropertyInherited.xml @@ -0,0 +1,61 @@ + + + + PropertyInherited + + + i=78 + i=12 + i=40 + i=45 + i=37 + i=47 + i=63 + i=58 + + + ToolId + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1000 + + + + ToolId + + BaseDataVariableType + ModellingRule_Mandatory + ns=1;i=1002 + + + + gripper1 + + ns=1;i=1002 + ns=1;i=1004 + ModellingRule_Mandatory + + + + RobotType + + BaseObjectType + ns=1;i=1005 + + + + GripperType + + ns=1;i=1000 + ns=1;i=1003 + + + + ToolType + + BaseObjectType + ns=1;i=1001 + + + \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/PropertyInteger.xml b/Uml2OpcuaTransformationTests/PropertyInteger.xml index d7a9153..289f3ed 100644 --- a/Uml2OpcuaTransformationTests/PropertyInteger.xml +++ b/Uml2OpcuaTransformationTests/PropertyInteger.xml @@ -4,27 +4,28 @@ Class - i=40 i=37 - i=78 - i=58 + i=6 i=45 + i=40 + i=58 i=47 - + i=78 + i=63 - + Property1 BaseDataVariableType ModellingRule_Mandatory - ns=1;s=Class2Type + ns=1;i=0 - + Class2Type BaseObjectType - ns=1;s=Property1 + ns=1;i=1 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/PropertyString.xml b/Uml2OpcuaTransformationTests/PropertyString.xml index 40b6fca..0392779 100644 --- a/Uml2OpcuaTransformationTests/PropertyString.xml +++ b/Uml2OpcuaTransformationTests/PropertyString.xml @@ -4,28 +4,28 @@ PropertyString + i=63 + i=58 + i=40 + i=47 + i=45 i=78 i=37 - i=45 i=12 - i=47 - i=63 - i=40 - i=58 - + Manufacturer BaseDataVariableType ModellingRule_Mandatory - ns=1;s=RobotType + ns=1;i=1000 - + RobotType BaseObjectType - ns=1;s=Manufacturer + ns=1;i=1001 \ No newline at end of file diff --git a/Uml2OpcuaTransformationTests/Transition.xml b/Uml2OpcuaTransformationTests/Transition.xml index 8aff877..c11c358 100644 --- a/Uml2OpcuaTransformationTests/Transition.xml +++ b/Uml2OpcuaTransformationTests/Transition.xml @@ -4,53 +4,53 @@ StateMachine - i=78 - i=37 - i=2771 i=2310 - i=2311 i=2307 - i=40 i=47 - i=52 - i=54 i=51 + i=54 i=45 + i=78 + i=37 + i=40 + i=2311 + i=52 + i=2771 - - State3 + + State2 StateType ModellingRule_Mandatory - ns=1;s=StateMachine4Type + ns=1;i=1000 - - State2 + + State3 StateType ModellingRule_Mandatory - ns=1;s=StateMachine4Type + ns=1;i=1000 - + myTransition TransitionType ModellingRule_Mandatory - ns=1;s=StateMachine4Type - ns=1;s=State2 - ns=1;s=State3 + ns=1;i=1000 + ns=1;i=1002 + ns=1;i=1001 TransitionEventType - + StateMachine4Type FiniteStateMachineType - ns=1;s=State3 - ns=1;s=State2 - ns=1;s=myTransition + ns=1;i=1001 + ns=1;i=1002 + ns=1;i=1003 \ No newline at end of file