Skip to content

Commit

Permalink
SIEMA Test project
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRibakov committed Feb 5, 2018
1 parent 49c9e50 commit 669a42c
Show file tree
Hide file tree
Showing 11 changed files with 201 additions and 12 deletions.
Binary file removed .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
53 changes: 53 additions & 0 deletions Exes/TestSIEMA/Program.cs
Original file line number Diff line number Diff line change
@@ -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<string> messages = new List<string>();

int codigoFinalizacion = tutor.ToTutor (actionName, domain,
studentKey, relatedObject, out messages);

Console.WriteLine ("Return Code: " + codigoFinalizacion);
foreach (String m in messages) {
Console.WriteLine (m);
}
}
}
}
35 changes: 35 additions & 0 deletions Exes/TestSIEMA/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
72 changes: 72 additions & 0 deletions Exes/TestSIEMA/TestSIEMA.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0977F2AD-E2AA-4E36-99B6-79350A57D74C}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TestSIEMA</RootNamespace>
<AssemblyName>TestSIEMA</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\TutoringModule\TutoringCoordinator\Its.TutoringModule.TutoringCoordinator\Its.TutoringModule.TC.csproj">
<Project>{7fe32128-c2f9-481e-8d73-79a1875e15db}</Project>
<Name>Its.TutoringModule.TC</Name>
</ProjectReference>
<ProjectReference Include="..\..\TutoringModule\TutoringCoordinator\ReactiveTutor\Its.TutoringModule.TutoringCoordinator.ReactiveTutor\Its.TutoringModule.TC.RTutor.csproj">
<Project>{17d5bdc5-93b7-4b54-bb7d-8041942658a3}</Project>
<Name>Its.TutoringModule.TC.RTutor</Name>
</ProjectReference>
<ProjectReference Include="..\..\Utils\Its.Utils.Config\Its.Utils.Config.csproj">
<Project>{b7413821-72a0-4104-b19f-44e0c8fd18a2}</Project>
<Name>Its.Utils.Config</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="TestSIEMA.exe.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
12 changes: 12 additions & 0 deletions Exes/TestSIEMA/TestSIEMA.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<appSettings>
<add key="initialColumn" value="2" />
<add key="finalColumn" value="22" />
<add key="initialRow" value="1" />
<add key="ontologyPath" value="..\..\..\..\StudentModule\Its.StudentModule.Ontology\"/>
<add key="logsPath" value="..\..\..\..\StudentModule\Its.StudentModule.Ontology/Logs\"/>
<add key="domainConfigurationPath" value="..\..\..\..\DomainConf\"/>
<add key="worldConfigurationPath" value="..\..\..\..\WorldConf\"/>
</appSettings>
</configuration>
14 changes: 14 additions & 0 deletions SolucionTutor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -30,6 +30,9 @@
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="IKVM.Runtime, Version=7.2.4630.5, Culture=neutral, PublicKeyToken=13235d27fcbfff58">
<HintPath>..\..\IKVM.Runtime.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
Expand Down
Empty file.
8 changes: 0 additions & 8 deletions WorldConf/NpcManagerMapping/Tutorial.txt
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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>
8 changes: 8 additions & 0 deletions WorldConf/NpcManagerMapping/Tutorial_orig.txt
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 669a42c

Please sign in to comment.