Skip to content
Snippets Groups Projects
Commit 8fd221fb authored by Loic Manceau's avatar Loic Manceau
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 430 additions and 0 deletions
File added
File added
File added
File added
File added
File added
File added
File added
File added

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SiriusQuality-MaizeLAI", "SiriusQuality-MaizeLAI\SiriusQuality-MaizeLAI.csproj", "{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestMaizeLAI", "UnitTestMaizeLAI\UnitTestMaizeLAI.csproj", "{F7EF096D-B0F4-466C-B628-10E153D0D97D}"
ProjectSection(ProjectDependencies) = postProject
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC} = {41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SiriusQuality-MaizeLAIConsole", "SiriusQuality-MaizeLAIConsole\SiriusQuality-MaizeLAIConsole.csproj", "{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}"
ProjectSection(ProjectDependencies) = postProject
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC} = {41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Win32 = Debug|Win32
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Debug|Win32.ActiveCfg = Debug|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Release|Any CPU.Build.0 = Release|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}.Release|Win32.ActiveCfg = Release|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Debug|Win32.ActiveCfg = Debug|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Release|Any CPU.Build.0 = Release|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F7EF096D-B0F4-466C-B628-10E153D0D97D}.Release|Win32.ActiveCfg = Release|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Debug|Win32.ActiveCfg = Debug|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Release|Any CPU.Build.0 = Release|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{3AE305BE-EFE5-412B-ADA8-1A4612F7CF15}.Release|Win32.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D08F2395-C2AB-4A30-9AB8-3F2E395DAA81}
EndGlobalSection
EndGlobal
File added
/*
-----------------------------------------------------------
Code generated by CRA.ModelLayer.ACC - API Code Generator
http://components.biomamodelling.org/components/acc/help/
Loic Manceau
loic.manceau@inra.fr
INRA
5/27/2019 1:15:21 PM
-----------------------------------------------------------
*/
using System;
using CRA.AgroManagement;
using CRA.ModelLayer.Strategy;
namespace SiriusQualityMaizeLAI
{
/// <summary>
/// SiriusQualityMaizeLAI component model interface
/// </summary>
public interface IStrategySiriusQualityMaizeLAI : IStrategy
{
/// <summary>
/// Calculate method for models
/// </summary>
/// <param name=m>MaizeLAIState Domain class contains the accessors to values</param>
/// <param name=m1>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=m2>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=ae>AgroManagement objects of impact parameters</param>
void Estimate
( MaizeLAIState m, MaizeLeafState m1, MaizeLeafState m2, ActEvents ae);
/// <summary>
/// Test of pre conditions
/// </summary>
/// <param name=m>MaizeLAIState Domain class contains the accessors to values</param>
/// <param name=m1>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=m2>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=callID>Preconditions test context</param>
/// <returns>List of violations</returns>
string TestPreConditions( MaizeLAIState m, MaizeLeafState m1, MaizeLeafState m2, string callID);
/// <summary>
/// Test of post-conditions
/// </summary>
/// <param name=m>MaizeLAIState Domain class contains the accessors to values</param>
/// <param name=m1>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=m2>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=callID>Postconditions test context</param>
/// <returns>List of violations</returns>
string TestPostConditions( MaizeLAIState m, MaizeLeafState m1, MaizeLeafState m2, string callID);
/// <summary>
/// Set parameters to the default value
/// </summary>
void SetParametersDefaultValue();
}
}
/*
----------------------------------------------------------------
Code generated by CRA.ModelLayer.ACC - API Code Generator
http://components.biomamodelling.org/components/acc/help/
Loic Manceau
loic.manceau@inra.fr
INRA
5/27/2019 1:15:21 PM
----------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Text;
using CRA.AgroManagement;
using CRA.ModelLayer.Core;
namespace SiriusQualityMaizeLAI
{
/// <summary>
/// SiriusQualityMaizeLAI component API
/// </summary>
public class SiriusQualityMaizeLAIAPI
{
private string _resultPreConditions;
private string _resultPostConditions;
Preconditions p = new Preconditions();
/// <summary>
/// Calculate method for the component
/// </summary>
/// <param name=m>MaizeLAIState Domain class contains the accessors to values</param>
/// <param name=m1>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=m2>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=ae>AgroManagement objects of impact parameters</param>
public void Estimate
(IStrategySiriusQualityMaizeLAI st, MaizeLAIState m, MaizeLeafState m1, MaizeLeafState m2, ActEvents ae)
{
st.Estimate
( m, m1, m2, ae);
}
/// <summary>
/// Calculate method for the component with test of preconditions
/// </summary>
/// <param name=m>MaizeLAIState Domain class contains the accessors to values</param>
/// <param name=m1>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=m2>MaizeLeafState Domain class contains the accessors to values</param>
/// <param name=ae>AgroManagement objects of impact parameters</param>
/// <param name="saveLog">Save log via a writer or show on screen</param>
/// <param name="callID">Context description for violations</param>
public void Estimate
(IStrategySiriusQualityMaizeLAI st, MaizeLAIState m, MaizeLeafState m1, MaizeLeafState m2, ActEvents ae, bool saveLog, string callID)
{
_resultPreConditions = String.Empty;
_resultPostConditions = String.Empty;
_resultPreConditions = st.TestPreConditions( m, m1, m2, callID);
st.Estimate
( m, m1, m2, ae);
_resultPostConditions = st.TestPostConditions( m, m1, m2, callID);
if (_resultPreConditions != String.Empty || _resultPostConditions != String.Empty)
{
p.TestsOut(_resultPreConditions + _resultPostConditions, saveLog, callID);
}
}
/// <summary>
/// Show the about form with access to the help and codedoc
/// </summary>
public void Info()
{
// The following assumes an about form called AboutBox
//AboutBox a = new AboutBox();
//a.ShowDialog();
}
}
}
/*
-------------------------------------------------------------
Code generated by CRA.ModelLayer.ACC - API Code Generator
http://components.biomamodelling.org/components/acc/help/
Loic Manceau
loic.manceau@inra.fr
INRA
5/27/2019 1:15:21 PM
-------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace SiriusQualityMaizeLAI
{
public static class TraceHelper
{
static private System.Diagnostics.TraceSource Source =
new System.Diagnostics.TraceSource(System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
/// <summary>
/// Writes a trace event message to the trace listeners in the System.Diagnostics.TraceSource.Listeners
/// collection using the specified event type, event identifier, and message.
/// </summary>
/// <param name="eventType">One of the System.Diagnostics.TraceEventType values that specifies the event type of the trace data.</param>
/// <param name="id">A numeric identifier for the event</param>
/// <param name="message">The trace message to write</param>
[System.Diagnostics.Conditional("TRACE")]
public static void TraceEvent(System.Diagnostics.TraceEventType eventType, int id, string message)
{
Source.TraceEvent(eventType, id, message);
Source.Flush();
}
public static void AddListener(TraceListener listener)
{
Source.Listeners.Add(listener);
Source.Switch.Level = ~SourceLevels.Off;
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un assembly.
[assembly: AssemblyTitle("SiriusQuality-MaizeLAI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SiriusQuality-MaizeLAI")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly
// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de
// COM, affectez la valeur true à l'attribut ComVisible sur ce type.
[assembly: ComVisible(false)]
// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM
[assembly: Guid("aff10b6c-e676-4459-9efe-2325e19059a4")]
// Les informations de version pour un assembly se composent des quatre valeurs suivantes :
//
// Version principale
// Version secondaire
// Numéro de build
// Révision
//
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
<?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>{41A5C831-AEF2-4DC0-A7BB-395FDA2C05AC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SiriusQuality_MaizeLAI</RootNamespace>
<AssemblyName>SiriusQuality-MaizeLAI</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</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="CRA.AgroManagement2014, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BioMa-DLL\CRA.AgroManagement2014.dll</HintPath>
</Reference>
<Reference Include="CRA.AgroManagement2014.Impacts, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BioMa-DLL\CRA.AgroManagement2014.Impacts.dll</HintPath>
</Reference>
<Reference Include="CRA.AgroManagement2014.Rules, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BioMa-DLL\CRA.AgroManagement2014.Rules.dll</HintPath>
</Reference>
<Reference Include="CRA.Core.Preconditions, Version=0.8.2963.15749, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BioMa-DLL\CRA.Core.Preconditions.dll</HintPath>
</Reference>
<Reference Include="CRA.ModelLayer, Version=1.0.5212.29139, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BioMa-DLL\CRA.ModelLayer.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="API\IStrategySiriusQualityMaizeLAI.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="API\SiriusQualityMaizeLAIAPI.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="API\TraceHelper.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="domainClass\MaizeLAIState.cs" />
<Compile Include="domainClass\MaizeLAIStateVarInfo.cs" />
<Compile Include="domainClass\MaizeLeafState.cs" />
<Compile Include="domainClass\MaizeLeafStateVarInfo.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Strategies\calcBaseWidth.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcFracPopn.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcFullyExpTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcInitTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcLER.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcLERCoeff.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcLiguleTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcStartEnlargeTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcStartExpTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcStopEnlargeTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\calcTipTT.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\DeltaLAIMaize.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\LeafExpansionDroughtFactor.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\MaizeLAI.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Strategies\UpdateLeafArea.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Utilities\BasicMathUtilities.cs" />
</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>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
</Project>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment