From 669a42cf45a528425b2fc45fdf6cac5166f7c150 Mon Sep 17 00:00:00 2001 From: Ivan Ribakov Date: Sun, 4 Feb 2018 21:33:18 +0100 Subject: [PATCH] SIEMA Test project --- .DS_Store | Bin 10244 -> 0 bytes .gitignore | 6 +- Exes/TestSIEMA/Program.cs | 53 +++++++++++++ Exes/TestSIEMA/Properties/AssemblyInfo.cs | 35 +++++++++ Exes/TestSIEMA/TestSIEMA.csproj | 72 ++++++++++++++++++ Exes/TestSIEMA/TestSIEMA.exe.config | 12 +++ SolucionTutor.sln | 14 ++++ .../Its.StudentModule.DA.csproj | 5 +- WorldConf/BlockObjects/Tutorial.txt | 0 WorldConf/NpcManagerMapping/Tutorial.txt | 8 -- WorldConf/NpcManagerMapping/Tutorial_orig.txt | 8 ++ 11 files changed, 201 insertions(+), 12 deletions(-) delete mode 100644 .DS_Store create mode 100644 Exes/TestSIEMA/Program.cs create mode 100644 Exes/TestSIEMA/Properties/AssemblyInfo.cs create mode 100644 Exes/TestSIEMA/TestSIEMA.csproj create mode 100644 Exes/TestSIEMA/TestSIEMA.exe.config create mode 100644 WorldConf/BlockObjects/Tutorial.txt mode change 100755 => 100644 WorldConf/NpcManagerMapping/Tutorial.txt create mode 100755 WorldConf/NpcManagerMapping/Tutorial_orig.txt diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 689437e818c44f7d1ab72b3348277a4cc528c64f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHMO=ufO6n?w0V@XbfOd2rMxZ6XZ1w$;Stq&!wEGs#LItY~5El%P{*4Ela+7;5u zO6nSP2nqDkUP4<;sp($|y(ILKLrDW6$u*7%NuY<&YX~_6ihF9`n_X!~tKF3w+a!hA zW#_GC-h1=CZ)WFD03ao*xfp-~03m!xMt5N1aZx!vZI^84yoXXkdw?qFpusF;z--eN z8G-@9fM7r{AQ%t~ya){7oK07#*ODR?3po6;?3{hHO$jt0@EDk7eFn{#nQ7zu|!Vf#~(jkzh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zi#KT z-L3r|w`JXu%pC2QIZEp^f6M<2xJI?N?d|ymoY?;dpC>qrz|GmOI}6^;@y9PH#s1&p GX!u`&1hP2* diff --git a/.gitignore b/.gitignore index ec41720..06502e1 100644 --- a/.gitignore +++ b/.gitignore @@ -20,9 +20,9 @@ x64/ x86/ bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ +*[Bb]in/ +*[Oo]bj/ +*[Ll]og/ # Visual Studio 2015/2017 cache/options directory .vs/ diff --git a/Exes/TestSIEMA/Program.cs b/Exes/TestSIEMA/Program.cs new file mode 100644 index 0000000..ab0deff --- /dev/null +++ b/Exes/TestSIEMA/Program.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using Its.TutoringModule.TutoringCoordinator.ReactiveTutor; +using Its.Utils.Config; + +namespace TestSIEMA +{ + internal class Program + { + public static void Main(string[] args) + { + Console.WriteLine("Hello!!!"); + + string[] keys = new string[] { "Tutorial" }; //Tutorial must refer to Domain and world configuration files with same name + + ITutorConfig config = new DefaultTutorConfig(); + + Tutor tutor = new Tutor(config); + //Carga los estudiantes registrados en el sistema + tutor.LoadStudents(); + + foreach (string k in keys) + { + tutor.LoadWorld(k); + tutor.LoadDomain(k); + } + + + //Para registrar estudiantes + //string key, string name, string +/* middleName, string surname, string lastName + tutor.CreateStudent(argumentos[1], argumentos[2], argumentos[3], + argumentos[4], argumentos[5]); +*/ + + //Así se hacen las llamadas al tutor + + string actionName = "crearLog"; + string domain = "Tutorial"; + string studentKey = "22"; + string relatedObject = "SeleccionPractica"; + List messages = new List(); + + int codigoFinalizacion = tutor.ToTutor (actionName, domain, + studentKey, relatedObject, out messages); + + Console.WriteLine ("Return Code: " + codigoFinalizacion); + foreach (String m in messages) { + Console.WriteLine (m); + } + } + } +} \ No newline at end of file diff --git a/Exes/TestSIEMA/Properties/AssemblyInfo.cs b/Exes/TestSIEMA/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0f9a8d3 --- /dev/null +++ b/Exes/TestSIEMA/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TestSIEMA")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TestSIEMA")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0977F2AD-E2AA-4E36-99B6-79350A57D74C")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/Exes/TestSIEMA/TestSIEMA.csproj b/Exes/TestSIEMA/TestSIEMA.csproj new file mode 100644 index 0000000..1692cac --- /dev/null +++ b/Exes/TestSIEMA/TestSIEMA.csproj @@ -0,0 +1,72 @@ + + + + + Debug + AnyCPU + {0977F2AD-E2AA-4E36-99B6-79350A57D74C} + Exe + Properties + TestSIEMA + TestSIEMA + v4.7 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + {7fe32128-c2f9-481e-8d73-79a1875e15db} + Its.TutoringModule.TC + + + {17d5bdc5-93b7-4b54-bb7d-8041942658a3} + Its.TutoringModule.TC.RTutor + + + {b7413821-72a0-4104-b19f-44e0c8fd18a2} + Its.Utils.Config + + + + + Always + + + + + \ No newline at end of file diff --git a/Exes/TestSIEMA/TestSIEMA.exe.config b/Exes/TestSIEMA/TestSIEMA.exe.config new file mode 100644 index 0000000..f589d13 --- /dev/null +++ b/Exes/TestSIEMA/TestSIEMA.exe.config @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/SolucionTutor.sln b/SolucionTutor.sln index abdc903..30b3101 100644 --- a/SolucionTutor.sln +++ b/SolucionTutor.sln @@ -75,6 +75,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Its.TutoringModule.TC", "Tu EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestSBP", "Exes\TestSBP\TestSBP.csproj", "{43243ACD-CE82-4C80-9281-78D94F24997D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Its.Utils.Config", "Utils\Its.Utils.Config\Its.Utils.Config.csproj", "{B7413821-72A0-4104-B19F-44E0C8FD18A2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestSIEMA", "Exes\TestSIEMA\TestSIEMA.csproj", "{0977F2AD-E2AA-4E36-99B6-79350A57D74C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -181,6 +185,14 @@ Global {43243ACD-CE82-4C80-9281-78D94F24997D}.Debug|Any CPU.Build.0 = Debug|Any CPU {43243ACD-CE82-4C80-9281-78D94F24997D}.Release|Any CPU.ActiveCfg = Release|Any CPU {43243ACD-CE82-4C80-9281-78D94F24997D}.Release|Any CPU.Build.0 = Release|Any CPU + {B7413821-72A0-4104-B19F-44E0C8FD18A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B7413821-72A0-4104-B19F-44E0C8FD18A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B7413821-72A0-4104-B19F-44E0C8FD18A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B7413821-72A0-4104-B19F-44E0C8FD18A2}.Release|Any CPU.Build.0 = Release|Any CPU + {0977F2AD-E2AA-4E36-99B6-79350A57D74C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0977F2AD-E2AA-4E36-99B6-79350A57D74C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0977F2AD-E2AA-4E36-99B6-79350A57D74C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0977F2AD-E2AA-4E36-99B6-79350A57D74C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {053D479C-7695-452A-ABFF-237300DB84AE} = {34E53C64-6F04-4A28-90F5-EEC20EF344DF} @@ -212,5 +224,7 @@ Global {17D5BDC5-93B7-4B54-BB7D-8041942658A3} = {1838E03B-D0E0-4D85-A313-4BEE84697F37} {BE49666E-929B-4CF9-9F37-DDB4E4D6C762} = {1838E03B-D0E0-4D85-A313-4BEE84697F37} {43243ACD-CE82-4C80-9281-78D94F24997D} = {FD95B02D-F0CC-4719-9D89-FB794262A804} + {B7413821-72A0-4104-B19F-44E0C8FD18A2} = {FB973AB7-9F4F-49B8-A187-A13D2BD13B12} + {0977F2AD-E2AA-4E36-99B6-79350A57D74C} = {FD95B02D-F0CC-4719-9D89-FB794262A804} EndGlobalSection EndGlobal diff --git a/StudentModule/Its.StudentModule.DataAccess/Its.StudentModule.DA.csproj b/StudentModule/Its.StudentModule.DataAccess/Its.StudentModule.DA.csproj index 76be1b0..f3cf6ae 100755 --- a/StudentModule/Its.StudentModule.DataAccess/Its.StudentModule.DA.csproj +++ b/StudentModule/Its.StudentModule.DataAccess/Its.StudentModule.DA.csproj @@ -1,4 +1,4 @@ - + Debug @@ -30,6 +30,9 @@ false + + ..\..\IKVM.Runtime.dll + diff --git a/WorldConf/BlockObjects/Tutorial.txt b/WorldConf/BlockObjects/Tutorial.txt new file mode 100644 index 0000000..e69de29 diff --git a/WorldConf/NpcManagerMapping/Tutorial.txt b/WorldConf/NpcManagerMapping/Tutorial.txt old mode 100755 new mode 100644 index bbc1ccc..e69de29 --- a/WorldConf/NpcManagerMapping/Tutorial.txt +++ b/WorldConf/NpcManagerMapping/Tutorial.txt @@ -1,8 +0,0 @@ -biotech|sillaCafe|Walk_Near_Available_Object|<124,76,23>|<123,76,24> -biotech|sillaCafe|Walk_Near_Available_Object|<124,75,23>|<124,75,24> -biotech|sillaCafe|Walk_Near_Available_Object|<123,75,23>|<123,75,24> -biotech|sillaCafe|Walk_Near_Available_Object|<123,76,23>|<123,76,24> -biotech|sillaCafe|Walk_Near_Available_Object|<124,73,23>|<123,73,24> -biotech|sillaCafe|Walk_Near_Available_Object|<124,71,23>|<124,72,24> -biotech|sillaCafe|Walk_Near_Available_Object|<123,72,23>|<123,72,24> -biotech|sillaCafe|Walk_Near_Available_Object|<122,73,23>|<123,73,24> \ No newline at end of file diff --git a/WorldConf/NpcManagerMapping/Tutorial_orig.txt b/WorldConf/NpcManagerMapping/Tutorial_orig.txt new file mode 100755 index 0000000..bbc1ccc --- /dev/null +++ b/WorldConf/NpcManagerMapping/Tutorial_orig.txt @@ -0,0 +1,8 @@ +biotech|sillaCafe|Walk_Near_Available_Object|<124,76,23>|<123,76,24> +biotech|sillaCafe|Walk_Near_Available_Object|<124,75,23>|<124,75,24> +biotech|sillaCafe|Walk_Near_Available_Object|<123,75,23>|<123,75,24> +biotech|sillaCafe|Walk_Near_Available_Object|<123,76,23>|<123,76,24> +biotech|sillaCafe|Walk_Near_Available_Object|<124,73,23>|<123,73,24> +biotech|sillaCafe|Walk_Near_Available_Object|<124,71,23>|<124,72,24> +biotech|sillaCafe|Walk_Near_Available_Object|<123,72,23>|<123,72,24> +biotech|sillaCafe|Walk_Near_Available_Object|<122,73,23>|<123,73,24> \ No newline at end of file