Skip to content

Commit a6b66cc

Browse files
Added test models as well as source code for PSCS test suites 01-04
1 parent 7068035 commit a6b66cc

File tree

349 files changed

+99767
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+99767
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.vs/
2+
/bin/
3+
/obj/
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
11+
<AssemblyName>AssemblyConnectors_P_P.Debug</AssemblyName>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
14+
<AssemblyName>AssemblyConnectors_P_P.Release</AssemblyName>
15+
</PropertyGroup>
16+
17+
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<Reference Include="uml">
19+
<HintPath>..\..\..\..\uml\bin\Debug\net6.0\uml.Debug.dll</HintPath>
20+
</Reference>
21+
</ItemGroup>
22+
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
23+
<Reference Include="uml">
24+
<HintPath>..\..\..\..\uml\bin\Release\net6.0\uml.Release.dll</HintPath>
25+
</Reference>
26+
</ItemGroup>
27+
28+
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
29+
<Reference Include="fuml">
30+
<HintPath>..\..\..\..\fuml\bin\Debug\net6.0\fuml.Debug.dll</HintPath>
31+
</Reference>
32+
</ItemGroup>
33+
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34+
<Reference Include="fuml">
35+
<HintPath>..\..\..\..\fuml\bin\Release\net6.0\fuml.Release.dll</HintPath>
36+
</Reference>
37+
</ItemGroup>
38+
39+
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
40+
<Reference Include="pscs">
41+
<HintPath>..\..\..\..\pscs\bin\Debug\net6.0\pscs.Debug.dll</HintPath>
42+
</Reference>
43+
</ItemGroup>
44+
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45+
<Reference Include="pscs">
46+
<HintPath>..\..\..\..\pscs\bin\Release\net6.0\pscs.Release.dll</HintPath>
47+
</Reference>
48+
</ItemGroup>
49+
50+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.32112.339
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyConnectors_P_P", "AssemblyConnectors_P_P.csproj", "{B563EDB7-1DC4-4389-B7CF-957DB2184698}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{B563EDB7-1DC4-4389-B7CF-957DB2184698}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B563EDB7-1DC4-4389-B7CF-957DB2184698}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B563EDB7-1DC4-4389-B7CF-957DB2184698}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B563EDB7-1DC4-4389-B7CF-957DB2184698}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {9B5A42AB-3904-4F12-ACE2-995E644B8621}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"profiles": {
3+
"AssemblyConnectors_P_P": {
4+
"commandName": "Project",
5+
"commandLineArgs": "main"
6+
}
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>

fUML-CSharp/tests/pscs-Tests/01_Instantiation/01_AssemblyConnectors_P_P/model/AssemblyConnectors_P_P.notation

Lines changed: 1751 additions & 0 deletions
Large diffs are not rendered by default.

fUML-CSharp/tests/pscs-Tests/01_Instantiation/01_AssemblyConnectors_P_P/model/AssemblyConnectors_P_P.uml

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
namespace AssemblyConnectors_P_P
2+
{
3+
internal class AssemblyConnectors_P_P
4+
{
5+
static void PrintUsage()
6+
{
7+
Console.WriteLine(
8+
"=============================================================================================\n" +
9+
"USAGE: <program-name> <behavior-name> [<behavior-name> <behavior-name> <behavior-name> <...>]\n" +
10+
"=============================================================================================\n"
11+
);
12+
}
13+
14+
static int Main(string[] args)
15+
{
16+
if(args.Length == 0)
17+
{
18+
Console.WriteLine("[ERROR] Must declare at least one behavior name.\n");
19+
PrintUsage();
20+
return -1;
21+
}
22+
23+
foreach (string arg in args)
24+
{
25+
AssemblyConnectors_P_PEnvironment.Instance().Execute(arg);
26+
}
27+
28+
return 0;
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*
2+
* AssemblyConnectors_P_PEnvironment.cs
3+
*
4+
* Auto-generated file
5+
*/
6+
7+
/* Start of user code : User-defined using directives
8+
* This section may be used for using directives.
9+
* It will not be overwritten by future generation processes.
10+
*/
11+
12+
/*
13+
* End of user code
14+
*/
15+
16+
namespace AssemblyConnectors_P_P
17+
{
18+
public class AssemblyConnectors_P_PEnvironment : pscs.environment.Environment
19+
{
20+
private static AssemblyConnectors_P_PEnvironment? instance;
21+
22+
public static AssemblyConnectors_P_PEnvironment Instance()
23+
{
24+
if(instance is null)
25+
{
26+
instance = new();
27+
instance.inMemoryModel = AssemblyConnectors_P_PModel.Instance();
28+
}
29+
30+
return instance;
31+
}
32+
33+
public AssemblyConnectors_P_PEnvironment()
34+
{
35+
/*
36+
* Create custom opaque behavior execution instances and add them to the execution environment.
37+
*/
38+
39+
/* Start of user code : Additional environment initializations
40+
* This section may be used to do any additional environment initialization,
41+
* for example initializing user-defined members.
42+
* It will not be overwritten by future generation processes.
43+
*/
44+
45+
/*
46+
* End of user code
47+
*/
48+
}
49+
50+
public override void Execute(string behaviorName)
51+
{
52+
/* Start of user code : Context and inputs initializations
53+
* This section may be used to initialize the execution context
54+
* as well as input parameter values if required.
55+
* It will not be overwritten by future generation processes.
56+
*/
57+
58+
//context = ...;
59+
//inputs = ...;
60+
61+
/*
62+
* End of user code
63+
*/
64+
65+
/*
66+
* Start execution via base class call
67+
*/
68+
base.Execute(behaviorName);
69+
70+
/* Start of user code : Outputs evaluation
71+
* This section may be used to evaluate output parameter values if required.
72+
* It will not be overwritten by future generation processes.
73+
*/
74+
75+
//List<ParameterValue> theOutputs = outputs;
76+
//...
77+
78+
/*
79+
* End of user code
80+
*/
81+
}
82+
83+
/* Start of user code : User-defined members
84+
* This section may be used for user-defined members.
85+
* It will not be overwritten by future generation processes.
86+
*/
87+
88+
/*
89+
* End of user code
90+
*/
91+
} // AssemblyConnectors_P_PEnvironment
92+
}

0 commit comments

Comments
 (0)