|
From: <br...@us...> - 2009-09-22 10:33:21
|
Revision: 565
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=565&view=rev
Author: brus07
Date: 2009-09-22 10:33:12 +0000 (Tue, 22 Sep 2009)
Log Message:
-----------
Create Mock project for emulate Nera.Tester.Runner.
This Mock emulate need functionality.
Delete unnecessary file Nera.Tester.Data.Test.dll and copy Nera.Tester.Data.dll.
Copy data.xsd file to test file directory.
Modified Paths:
--------------
nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj
nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj
nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln
nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs
Added Paths:
-----------
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/
nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/AcmLibraryExtention.dll
nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.dll
nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd
Removed Paths:
-------------
nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll
Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-06 10:31:10 UTC (rev 564)
+++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-22 10:33:12 UTC (rev 565)
@@ -20,4 +20,10 @@
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj">
+ <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project>
+ <Name>Nera.Tester.Runner.Mock</Name>
+ </ProjectReference>
+ </ItemGroup>
</Project>
\ No newline at end of file
Modified: nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-09-06 10:31:10 UTC (rev 564)
+++ nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-09-22 10:33:12 UTC (rev 565)
@@ -3,7 +3,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{FF0BA05D-5DEB-4b8c-898A-146C2D43B6EA}</ProjectGuid>
+ <ProjectGuid>{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -13,7 +13,19 @@
<!-- Added for making the difference in Build.dependencies file between sources & tests projects -->
<ProjectKind>ComponentTests</ProjectKind>
</PropertyGroup>
-
<Import Project="Reference.targets" />
+ <ItemGroup>
+ <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj">
+ <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project>
+ <Name>Nera.Tester.Runner.Mock</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <XSDFile Include="$(TestFilesDir)\data.xsd" />
+ </ItemGroup>
+ <Target Name="TestSetup" DependsOnTargets="Build">
+ <Copy SourceFiles="@(XSDFile)" DestinationFiles="@(XSDFile->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" />
+ </Target>
+
</Project>
\ No newline at end of file
Property changes on: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock
___________________________________________________________________
Added: svn:ignore
+ bin
obj
Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs (rev 0)
+++ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs 2009-09-22 10:33:12 UTC (rev 565)
@@ -0,0 +1,22 @@
+using System;
+using Nera.Tester.Data;
+
+namespace Nera.Tester.Runner
+{
+ public class Checker
+ {
+ public static string GetResult(string message)
+ {
+ string s = AcmContester.Library.LibraryExtention.Configuration.ExecutablePath;
+
+ //TODO:
+ Submit submit = Submit.CreateFromXml(message);
+ Result result = new Result(submit);
+
+ result.compOutput = "--";
+ result.res = "Accepted";
+
+ return result.ToStringX();
+ }
+ }
+}
Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj (rev 0)
+++ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj 2009-09-22 10:33:12 UTC (rev 565)
@@ -0,0 +1,55 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{90AC3983-05CD-4586-97B5-4376FF831827}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Nera.Tester.Runner</RootNamespace>
+ <AssemblyName>Nera.Tester.Runner</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <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' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="AcmLibraryExtention, Version=1.0.3482.26401, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>lib\AcmLibraryExtention.dll</HintPath>
+ </Reference>
+ <Reference Include="Nera.Tester.Data, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\Nera.Tester.Data.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Class1.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\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>
\ No newline at end of file
Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs (rev 0)
+++ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs 2009-09-22 10:33:12 UTC (rev 565)
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+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("Nera.Tester.Runner.Mock")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Nera.Tester.Runner.Mock")]
+[assembly: AssemblyCopyright("Copyright © 2009")]
+[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("23e10d27-6f54-48cb-b4b6-8df47fe14d5f")]
+
+// 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 Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/AcmLibraryExtention.dll
===================================================================
(Binary files differ)
Property changes on: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/AcmLibraryExtention.dll
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Deleted: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll
===================================================================
(Binary files differ)
Added: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.dll
===================================================================
(Binary files differ)
Property changes on: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.dll
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln 2009-09-06 10:31:10 UTC (rev 564)
+++ nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln 2009-09-22 10:33:12 UTC (rev 565)
@@ -5,15 +5,26 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nera.Tester.Runner.Mock", "Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj", "{90AC3983-05CD-4586-97B5-4376FF831827}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Release|Any CPU.ActiveCfg = Debug|Any CPU
+ {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Release|Any CPU.Build.0 = Debug|Any CPU
{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Release|Any CPU.ActiveCfg = Debug|Any CPU
+ {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Release|Any CPU.Build.0 = Debug|Any CPU
+ {90AC3983-05CD-4586-97B5-4376FF831827}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {90AC3983-05CD-4586-97B5-4376FF831827}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {90AC3983-05CD-4586-97B5-4376FF831827}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {90AC3983-05CD-4586-97B5-4376FF831827}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Modified: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-06 10:31:10 UTC (rev 564)
+++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-22 10:33:12 UTC (rev 565)
@@ -5,15 +5,16 @@
using System.Drawing;
using System.Text;
using System.Windows.Forms;
+using Nera.Tester.Data;
namespace Nera.Tester.Gui.Sample
{
public partial class MainForm : Form
{
private Label label1;
- private Button button1;
- private TextBox textBox2;
- private TextBox textBox1;
+ private Button submitButton;
+ private TextBox resultTextBox;
+ private TextBox sourceTextBox;
public MainForm()
{
@@ -22,22 +23,22 @@
private void InitializeComponent()
{
- this.textBox1 = new System.Windows.Forms.TextBox();
+ this.sourceTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
- this.button1 = new System.Windows.Forms.Button();
- this.textBox2 = new System.Windows.Forms.TextBox();
+ this.submitButton = new System.Windows.Forms.Button();
+ this.resultTextBox = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
- // textBox1
+ // sourceTextBox
//
- this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ this.sourceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.textBox1.Location = new System.Drawing.Point(12, 25);
- this.textBox1.Multiline = true;
- this.textBox1.Name = "textBox1";
- this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.textBox1.Size = new System.Drawing.Size(440, 126);
- this.textBox1.TabIndex = 0;
+ this.sourceTextBox.Location = new System.Drawing.Point(12, 25);
+ this.sourceTextBox.Multiline = true;
+ this.sourceTextBox.Name = "sourceTextBox";
+ this.sourceTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
+ this.sourceTextBox.Size = new System.Drawing.Size(440, 126);
+ this.sourceTextBox.TabIndex = 0;
//
// label1
//
@@ -48,41 +49,57 @@
this.label1.TabIndex = 1;
this.label1.Text = "SourceCode:";
//
- // button1
+ // submitButton
//
- this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ this.submitButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.button1.Location = new System.Drawing.Point(12, 157);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(440, 23);
- this.button1.TabIndex = 2;
- this.button1.Text = "Submit";
- this.button1.UseVisualStyleBackColor = true;
+ this.submitButton.Location = new System.Drawing.Point(12, 157);
+ this.submitButton.Name = "submitButton";
+ this.submitButton.Size = new System.Drawing.Size(440, 23);
+ this.submitButton.TabIndex = 2;
+ this.submitButton.Text = "Submit";
+ this.submitButton.UseVisualStyleBackColor = true;
+ this.submitButton.Click += new System.EventHandler(this.submitButton_Click);
//
- // textBox2
+ // resultTextBox
//
- this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ this.resultTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.textBox2.Location = new System.Drawing.Point(12, 186);
- this.textBox2.Multiline = true;
- this.textBox2.Name = "textBox2";
- this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.textBox2.Size = new System.Drawing.Size(440, 68);
- this.textBox2.TabIndex = 3;
+ this.resultTextBox.Location = new System.Drawing.Point(12, 186);
+ this.resultTextBox.Multiline = true;
+ this.resultTextBox.Name = "resultTextBox";
+ this.resultTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
+ this.resultTextBox.Size = new System.Drawing.Size(440, 68);
+ this.resultTextBox.TabIndex = 3;
//
// MainForm
//
this.ClientSize = new System.Drawing.Size(464, 266);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.button1);
+ this.Controls.Add(this.resultTextBox);
+ this.Controls.Add(this.submitButton);
this.Controls.Add(this.label1);
- this.Controls.Add(this.textBox1);
+ this.Controls.Add(this.sourceTextBox);
this.Name = "MainForm";
this.Text = "MainForm";
this.ResumeLayout(false);
this.PerformLayout();
}
+
+ private void submitButton_Click(object sender, EventArgs e)
+ {
+ Submit submit = new Submit();
+ submit.id = (new Random((int)(DateTime.Now.Ticks))).Next(1000);
+ submit.language = 1;
+ submit.pbolemID = 1;
+ submit.sourceCode = sourceTextBox.Text;
+
+ string resultMessage = Nera.Tester.Runner.Checker.GetResult(submit.ToString());
+ Result result = Result.CreateFromXml(resultMessage);
+
+ string newResult = result.Submit.id.ToString() + " - " + result.res;
+ resultTextBox.Text = newResult + Environment.NewLine + resultTextBox.Text;
+ }
}
}
\ No newline at end of file
Added: nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd
===================================================================
--- nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd (rev 0)
+++ nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd 2009-09-22 10:33:12 UTC (rev 565)
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema id="XMLSchema1" elementFormDefault="qualified" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:complexType name="submitType">
+ <xs:sequence maxOccurs="1">
+ <!-- потрібно щоб ці записи могли слідувати у довільному порядку -->
+ <xs:element name="id" type="xs:positiveInteger" />
+ <xs:element name="problem" type="xs:positiveInteger" />
+ <xs:element name="sourceCode" type="xs:string" />
+ <xs:element name="language">
+ <!-- обмеження для ID мови програмування -->
+ <xs:simpleType>
+ <xs:restriction base="xs:int">
+ <xs:maxInclusive value="100" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="submitIOIType">
+ <xs:sequence>
+ <xs:element name="submit" type="submitType" />
+ <xs:element name="name" type="xs:string" />
+ <xs:element name="form" type="xs:positiveInteger" />
+ <xs:element name="school" type="xs:string" minOccurs="0" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="submitList">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:sequence>
+ <xs:element name="submit" type="submitType" maxOccurs="unbounded" minOccurs="0" />
+ </xs:sequence>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="resultType">
+ <xs:sequence>
+ <xs:element name="res" type="xs:string" />
+ <xs:element name="result" type="xs:int" />
+ <xs:element name="usedTime" type="xs:double" />
+ <xs:element name="usedMemory" type="xs:double" />
+ <xs:element name="compOutput" type="xs:string" />
+ <xs:element name="submit" type="submitType" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="resultIOIType">
+ <xs:sequence>
+ <xs:element name="res" type="xs:string" />
+ <xs:element name="result" type="xs:int" />
+ <xs:element name="usedTime" type="xs:double" />
+ <xs:element name="usedMemory" type="xs:double" />
+ <xs:element name="compOutput" type="xs:string" />
+ <xs:element name="testResults" type="testResultList" minOccurs="0" />
+ <xs:element name="submitioi" type="submitIOIType" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="testResultList">
+ <xs:sequence>
+ <xs:sequence>
+ <xs:element name="TestResIoi" type="testResultIoiType" maxOccurs="unbounded" minOccurs="0" />
+ </xs:sequence>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="testResultIoiType">
+ <xs:sequence>
+ <!-- обмеження для ID: не має бути відємним -->
+ <xs:element name="id" type="xs:int" />
+ <xs:element name="res" type="xs:string" />
+ <xs:element name="usedTime" type="xs:double" />
+ <xs:element name="usedMemory" type="xs:double" />
+ <xs:element name="input" type="xs:string" />
+ <xs:element name="output" type="xs:string" />
+ <xs:element name="contestantOutput" type="xs:string" />
+ <xs:element name="point" type="xs:int" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="result" type="resultType">
+ </xs:element>
+ <xs:element name="submit" type="submitType">
+ </xs:element>
+ <xs:element name="submitioi" type="submitIOIType">
+ </xs:element>
+ <xs:element name="resultioi" type="resultIOIType">
+ </xs:element>
+</xs:schema>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|