Sandbox-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 1825 discussions
r517 - in masc/masc-api: . src/main/java/fr/inra/masc/services src/main/xmi src/test/java/fr/inra/masc/services
by sletellier@users.nuiton.org 12 Dec '11
by sletellier@users.nuiton.org 12 Dec '11
12 Dec '11
Author: sletellier
Date: 2011-12-12 17:59:10 +0100 (Mon, 12 Dec 2011)
New Revision: 517
Url: http://nuiton.org/repositories/revision/sandbox/517
Log:
- Add mexico zargo file include in build
- Creating services to write/load xml and manipulates models
- Implement MexicoModelConvertorService to convert MascModel to MexicoModel
Added:
masc/masc-api/src/main/java/fr/inra/masc/services/MexicoLoadModelService.java
masc/masc-api/src/main/java/fr/inra/masc/services/MexicoModelConvertorService.java
masc/masc-api/src/main/java/fr/inra/masc/services/MexicoSaveModelService.java
masc/masc-api/src/main/xmi/mexico.zargo
masc/masc-api/src/test/java/fr/inra/masc/services/MexicoModelConvertorServiceTest.java
Modified:
masc/masc-api/pom.xml
masc/masc-api/src/main/xmi/masc.zargo
Modified: masc/masc-api/pom.xml
===================================================================
--- masc/masc-api/pom.xml 2011-12-09 18:13:28 UTC (rev 516)
+++ masc/masc-api/pom.xml 2011-12-12 16:59:10 UTC (rev 517)
@@ -93,25 +93,38 @@
<groupId>org.nuiton.eugene</groupId>
<artifactId>maven-eugene-plugin</artifactId>
<configuration>
- <defaultPackage>fr.inra.masc</defaultPackage>
- <fullPackagePath>fr.inra.masc</fullPackagePath>
+ <resolver>org.nuiton.util.FasterCachedResourceResolver</resolver>
+ <templates>
+ org.nuiton.eugene.java.JavaInterfaceTransformer,
+ org.nuiton.eugene.java.JavaBeanTransformer,
+ org.nuiton.eugene.java.JavaEnumerationTransformer
+ </templates>
</configuration>
<executions>
<execution>
+ <id>masc-beans</id>
<phase>generate-sources</phase>
<configuration>
- <inputs>zargo</inputs>
- <resolver>org.nuiton.util.FasterCachedResourceResolver</resolver>
- <templates>
- org.nuiton.eugene.java.JavaInterfaceTransformer,
- org.nuiton.eugene.java.JavaBeanTransformer,
- org.nuiton.eugene.java.JavaEnumerationTransformer
- </templates>
+ <defaultPackage>fr.inra.masc</defaultPackage>
+ <fullPackagePath>fr.inra.masc</fullPackagePath>
+ <inputs>src/main/xmi:masc.zargo</inputs>
</configuration>
<goals>
<goal>smart-generate</goal>
</goals>
</execution>
+ <execution>
+ <id>mexico-beans</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <defaultPackage>fr.ifremer.mexico</defaultPackage>
+ <fullPackagePath>fr.ifremer.mexico</fullPackagePath>
+ <inputs>src/main/xmi:mexico.zargo</inputs>
+ </configuration>
+ <goals>
+ <goal>smart-generate</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
Added: masc/masc-api/src/main/java/fr/inra/masc/services/MexicoLoadModelService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MexicoLoadModelService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MexicoLoadModelService.java 2011-12-12 16:59:10 UTC (rev 517)
@@ -0,0 +1,33 @@
+package fr.inra.masc.services;
+
+import fr.ifremer.mexico.model.ExperienceDesign;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ */
+public class MexicoLoadModelService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(MexicoLoadModelService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
+ public File loadExperienceDesign(ExperienceDesign mexicoModel, File toSave) {
+
+ // TODO sletellier : load mexico experience design xml file
+ return toSave;
+ }
+
+ public File loadInputDesignDesign(ExperienceDesign mexicoModel, File toSave) {
+
+ // TODO sletellier : write mexico input design xml file
+ return toSave;
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/MexicoModelConvertorService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MexicoModelConvertorService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MexicoModelConvertorService.java 2011-12-12 16:59:10 UTC (rev 517)
@@ -0,0 +1,149 @@
+package fr.inra.masc.services;
+
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
+import fr.ifremer.mexico.model.*;
+import fr.inra.masc.model.*;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MexicoModelConvertorService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(MexicoModelConvertorService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
+ public InputDesign convertMascModelToMexicoInputDesignModel(MascModel mascModel, ExperienceDesign experienceDesign) {
+ InputDesign inputDesign = new InputDesignImpl();
+
+ // experience design
+ inputDesign.setExperienceDesign(experienceDesign);
+
+ // date is now
+ inputDesign.setDate(new Date());
+
+ // scenarios = options
+ Collection<Option> options = mascModel.getOption();
+ List<Scenario> scenarios = Lists.newArrayList();
+ int i = 0;
+ for (Option option : options) {
+ Scenario scenario = new ScenarioImpl();
+
+ // order
+ scenario.setOrderNumber(i++);
+
+ // name
+ scenario.setName(option.getName());
+
+ // get factor corresponding to criteria
+ Map<Factor, Object> factorValues = Maps.newHashMap();
+
+ // optionValue = entry of factorValues
+ for (OptionValue optionValue : option.getOptionValue()) {
+
+ Collection<Factor> factors = experienceDesign.getFactors();
+ for (Factor factor : factors) {
+ String criteriaName = optionValue.getCriteria().getName();
+ if (factor.getId().equals(criteriaName)) {
+ factorValues.put(factor, optionValue.getValue());
+ }
+ }
+ }
+ scenario.setFactorValues(factorValues);
+
+ scenarios.add(scenario);
+ }
+ inputDesign.setScenarios(scenarios);
+
+ return inputDesign;
+ }
+
+ public ExperienceDesign convertMascModelToMexicoExperienceDesignModel(MascModel mascModel) {
+ ExperienceDesign experienceDesign = new ExperienceDesignImpl();
+
+ // id = mascModel name
+ experienceDesign.setId(mascModel.getName());
+
+ // description
+ String description = StringUtils.join(mascModel.getDescription(), "\n");
+ experienceDesign.setDescription(description);
+
+ // date is now
+ experienceDesign.setDate(new Date());
+
+ // criterias = factors
+ Collection<Criteria> criterias = mascModel.getCriteria();
+ List<Factor> factors = Lists.newArrayList();
+
+ for (Criteria criteria : criterias) {
+ factors.addAll(getFactors(criteria));
+ }
+ experienceDesign.setFactors(factors);
+
+ return experienceDesign;
+ }
+
+ protected Collection<Factor> getFactors(Criteria criteria) {
+
+ List<Factor> factors = Lists.newArrayList();
+
+ // keep only editable criterias
+ if (criteria instanceof EditableCriteria) {
+ Factor factor = new FactorImpl();
+
+ // id = criteria.name
+ factor.setId(criteria.getName());
+
+ // description
+ factor.setDescription(criteria.getDescription());
+
+ // scales are put in features
+ List<Feature> features = Lists.newArrayList();
+ Collection<ScaleValue> scaleValues = criteria.getScale();
+ for (ScaleValue scaleValue : scaleValues) {
+ Feature feature = new FeatureImpl();
+
+ // name
+ String scaleValuePrefix = ScaleValue.class.getSimpleName() + "_";
+ feature.setName(scaleValuePrefix + ScaleValue.PROPERTY_NAME);
+ feature.setValue(scaleValue.getName());
+ feature.setValueType(ValueType.STRING);
+
+ // description
+ feature.setName(scaleValuePrefix + ScaleValue.PROPERTY_DESCRIPTION);
+ feature.setValue(scaleValue.getDescription());
+ feature.setValueType(ValueType.STRING);
+
+ // group
+ feature.setName(scaleValuePrefix + ScaleValue.PROPERTY_GROUP);
+ feature.setValue(scaleValue.getGroup());
+ feature.setValueType(ValueType.STRING);
+
+ features.add(feature);
+ }
+ factor.setFeatures(features);
+
+ factors.add(factor);
+ }
+
+ // get all children factors
+ for (Criteria child : criteria.getChildren()) {
+ factors.addAll(getFactors(child));
+ }
+ return factors;
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/MexicoSaveModelService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MexicoSaveModelService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MexicoSaveModelService.java 2011-12-12 16:59:10 UTC (rev 517)
@@ -0,0 +1,33 @@
+package fr.inra.masc.services;
+
+import fr.ifremer.mexico.model.ExperienceDesign;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ */
+public class MexicoSaveModelService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(MexicoLoadModelService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
+ public File saveExperienceDesign(ExperienceDesign mexicoModel, File toSave) {
+
+ // TODO sletellier : write mexico experience design xml file
+ return toSave;
+ }
+
+ public File saveInputDesignDesign(ExperienceDesign mexicoModel, File toSave) {
+
+ // TODO sletellier : write mexico input design xml file
+ return toSave;
+ }
+}
Modified: masc/masc-api/src/main/xmi/masc.zargo
===================================================================
(Binary files differ)
Added: masc/masc-api/src/main/xmi/mexico.zargo
===================================================================
(Binary files differ)
Property changes on: masc/masc-api/src/main/xmi/mexico.zargo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: masc/masc-api/src/test/java/fr/inra/masc/services/MexicoModelConvertorServiceTest.java
===================================================================
--- masc/masc-api/src/test/java/fr/inra/masc/services/MexicoModelConvertorServiceTest.java (rev 0)
+++ masc/masc-api/src/test/java/fr/inra/masc/services/MexicoModelConvertorServiceTest.java 2011-12-12 16:59:10 UTC (rev 517)
@@ -0,0 +1,74 @@
+package fr.inra.masc.services;
+
+import fr.ifremer.mexico.model.ExperienceDesign;
+import fr.ifremer.mexico.model.InputDesign;
+import fr.ifremer.mexico.model.Scenario;
+import fr.inra.masc.model.*;
+import org.junit.Test;
+
+import java.io.File;
+import java.util.Collection;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MexicoModelConvertorServiceTest extends AbstractServiceTest {
+
+ @Test
+ public void testConvertMascModelToMexicoExperienceDesignModel() throws Exception {
+ MexicoModelConvertorService mexicoModelConvertorService = getService(MexicoModelConvertorService.class);
+ File dexiTestFile = getDexiTestFile();
+ MascModel mascModel = getService(LoadModelService.class).loadModel(dexiTestFile);
+ ExperienceDesign experienceDesign = mexicoModelConvertorService.convertMascModelToMexicoExperienceDesignModel(mascModel);
+
+ // count masc model criteria
+ Collection<Criteria> criterias = mascModel.getCriteria();
+ int count = 0;
+ for (Criteria criteria : criterias) {
+ count += countChildren(criteria);
+ }
+ assertEquals(count, experienceDesign.getFactors().size());
+ }
+
+ protected int countChildren(Criteria criteria) {
+ Collection<Criteria> children = criteria.getChildren();
+
+ // only editable criterias
+ int count = criteria instanceof EditableCriteria ? 1 : 0;
+
+ for (Criteria child : children) {
+ count += countChildren(child);
+ }
+ return count;
+ }
+
+ @Test
+ public void testConvertMascModelToMexicoInputDesignModel() throws Exception {
+
+ File dexiTestFile = getDexiTestFile();
+ MascModel mascModel = getService(LoadModelService.class).loadModel(dexiTestFile);
+ MexicoModelConvertorService mexicoModelConvertorService = getService(MexicoModelConvertorService.class);
+ ExperienceDesign experienceDesign = mexicoModelConvertorService.convertMascModelToMexicoExperienceDesignModel(mascModel);
+ InputDesign inputDesign = mexicoModelConvertorService.convertMascModelToMexicoInputDesignModel(mascModel, experienceDesign);
+
+ Collection<Option> options = mascModel.getOption();
+ assertEquals(options.size(), inputDesign.getScenarios().size());
+
+ int i = 0;
+ for (Option option : options) {
+ Scenario scenario = inputDesign.getScenarios(i++);
+ Collection<OptionValue> optionValues = option.getOptionValue();
+
+ // count option with editable criteria
+ int count = 0;
+ for (OptionValue optionValue : optionValues) {
+ Criteria criteria = optionValue.getCriteria();
+ if (criteria instanceof EditableCriteria) {
+ count++;
+ }
+ }
+ assertEquals(count, scenario.getFactorValues().size());
+ }
+ }
+}
1
0
Author: sletellier
Date: 2011-12-09 19:13:28 +0100 (Fri, 09 Dec 2011)
New Revision: 516
Url: http://nuiton.org/repositories/revision/sandbox/516
Log:
- Add dependencies
Modified:
masc/pom.xml
Modified: masc/pom.xml
===================================================================
--- masc/pom.xml 2011-12-09 18:13:06 UTC (rev 515)
+++ masc/pom.xml 2011-12-09 18:13:28 UTC (rev 516)
@@ -111,12 +111,59 @@
<version>${nuitonI18nVersion}</version>
</dependency>
+ <!-- jaxx dependencies -->
<dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime</artifactId>
+ <version>${jaxxVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-validator</artifactId>
+ <version>${jaxxVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-widgets</artifactId>
+ <version>${jaxxVersion}</version>
+ </dependency>
+
+ <!-- commons -->
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-exec</artifactId>
+ <version>1.1</version>
+ </dependency>
+
+ <dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>10.0.1</version>
</dependency>
+ <!-- xml parser -->
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ <version>1.1.4c</version>
+ </dependency>
+
+ <!-- xml lexer -->
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+
+ <!-- xml unit for tests -->
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>1.3</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</dependencyManagement>
1
0
r515 - in masc/masc-api: . src src/main src/main/java/fr/inra/masc src/main/java/fr/inra/masc/model src/main/java/fr/inra/masc/services src/main/resources src/main/xmi src/test src/test/java src/test/java/fr src/test/java/fr/inra src/test/java/fr/inra/masc src/test/java/fr/inra/masc/services src/test/resources src/test/resources/dxi
by sletellier@users.nuiton.org 09 Dec '11
by sletellier@users.nuiton.org 09 Dec '11
09 Dec '11
Author: sletellier
Date: 2011-12-09 19:13:06 +0100 (Fri, 09 Dec 2011)
New Revision: 515
Url: http://nuiton.org/repositories/revision/sandbox/515
Log:
- Add import/export masc model
- Remove visitable entities
- Add some tests and test fils
- Add threshold.csv file to list threshold possible values
Added:
masc/masc-api/src/main/java/fr/inra/masc/model/MascXmlConstant.java
masc/masc-api/src/main/resources/
masc/masc-api/src/main/resources/threshold.csv
masc/masc-api/src/test/
masc/masc-api/src/test/java/
masc/masc-api/src/test/java/fr/
masc/masc-api/src/test/java/fr/inra/
masc/masc-api/src/test/java/fr/inra/masc/
masc/masc-api/src/test/java/fr/inra/masc/services/
masc/masc-api/src/test/java/fr/inra/masc/services/AbstractServiceTest.java
masc/masc-api/src/test/java/fr/inra/masc/services/EvalInvokerServiceTest.java
masc/masc-api/src/test/java/fr/inra/masc/services/InvokerServiceTest.java
masc/masc-api/src/test/java/fr/inra/masc/services/LoadModelServiceTest.java
masc/masc-api/src/test/java/fr/inra/masc/services/SaveModelServiceTest.java
masc/masc-api/src/test/resources/
masc/masc-api/src/test/resources/dxi/
masc/masc-api/src/test/resources/dxi/dexi-model2.0.dxi
masc/masc-api/src/test/resources/dxi/dexi2.0.dxi
masc/masc-api/src/test/resources/log4j.properties
Removed:
masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java
Modified:
masc/masc-api/pom.xml
masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java
masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java
masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java
masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java
masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java
masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java
masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java
masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java
masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java
masc/masc-api/src/main/xmi/masc.zargo
Modified: masc/masc-api/pom.xml
===================================================================
--- masc/masc-api/pom.xml 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/pom.xml 2011-12-09 18:13:06 UTC (rev 515)
@@ -37,10 +37,46 @@
</dependency>
<dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-exec</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
+ <!-- xml parser -->
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ </dependency>
+
+ <!-- xml lexer -->
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </dependency>
+
+ <!-- tests -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
</dependencies>
<!-- ************************************************************* -->
Modified: masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,16 +1,21 @@
package fr.inra.masc;
import com.google.common.base.Preconditions;
+import com.google.common.collect.*;
+import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuiton.util.*;
-import java.io.File;
-import java.io.IOException;
+import java.io.*;
+import java.net.URISyntaxException;
import java.net.URL;
+import java.util.List;
import java.util.Properties;
+import static org.nuiton.i18n.I18n.n_;
+
/**
* Masc configuration.
*
@@ -26,6 +31,10 @@
/** Delegate application config object containing configuration. */
protected ApplicationConfig applicationConfig;
+ public static final String THRESHOLD_FILE = "/threshold.csv";
+ public static final String CSV_SEPARATOR = ";";
+ protected Multimap<String, Integer> thresholds;
+
public MascConfig() {
this("masc.properties");
}
@@ -46,6 +55,9 @@
"Could not parse configuration", e);
}
+ // create directory if needed
+ createDirectory(MascConfigOption.DATA_DIRECTORY);
+
if (log.isDebugEnabled()) {
log.debug("parsed options in config file" + applicationConfig.getOptions());
}
@@ -61,6 +73,12 @@
return result;
}
+ public File getDataDirectory() {
+ File file = applicationConfig.getOptionAsFile(MascConfigOption.DATA_DIRECTORY.key);
+ Preconditions.checkNotNull(file);
+ return file;
+ }
+
public Version getApplicationVersion() {
String versionStr = applicationConfig.getOption(MascConfigOption.VERSION.key);
String s = VersionUtil.removeSnapshot(versionStr);
@@ -75,18 +93,70 @@
return url;
}
- public String getDexiPath() {
- String dexyPath = applicationConfig.getOption(MascConfigOption.DEXI_APP_PATH.key);
- Preconditions.checkNotNull(dexyPath);
- return dexyPath;
+ public File getDexiExecutableFile() {
+ File dexiExecutableFile = applicationConfig.getOptionAsFile(MascConfigOption.DEXI_APP_PATH.key);
+ return dexiExecutableFile;
}
- public String getDexiEvalPath() {
- String dexyEvalPath = applicationConfig.getOption(MascConfigOption.DEXI_EVAL_APP_PATH.key);
- Preconditions.checkNotNull(dexyEvalPath);
- return dexyEvalPath;
+ public File getDexiEvalExecutableFile() {
+ File dexiEvalExecutableFile = applicationConfig.getOptionAsFile(MascConfigOption.DEXI_EVAL_APP_PATH.key);
+ return dexiEvalExecutableFile;
}
+
+ public File getThresholdFile() throws FileNotFoundException, URISyntaxException {
+ File thresholdFile = new File(getDataDirectory(), THRESHOLD_FILE);
+ // if file doesnt exist, search it on classpath
+ if (!thresholdFile.exists()) {
+ URL thresholdUrl = MascConfig.class.getResource(THRESHOLD_FILE);
+ thresholdFile = new File(thresholdUrl.toURI());
+ }
+
+ return thresholdFile;
+ }
+
+ public Multimap<String, Integer> getThresholds() {
+
+ // use singleton to parse just one time
+ if (thresholds == null) {
+ try {
+ thresholds = ArrayListMultimap.create();
+
+ // get file
+ File thresholdFile = getThresholdFile();
+
+ // read file
+ BufferedReader thresholdReader = FileUtil.getReader(thresholdFile);
+
+ // read line
+ String line = thresholdReader.readLine();
+
+ // parse all file
+ while (StringUtils.isNotEmpty(line)) {
+ String[] splitedLine = line.split(CSV_SEPARATOR);
+
+ // first is the key
+ String key = splitedLine[0];
+
+ // parse values
+ List<Integer> values = Lists.newArrayList();
+ for (int i=1;i<splitedLine.length;i++) {
+ values.add(Integer.parseInt(splitedLine[i]));
+ }
+ thresholds.putAll(key, values);
+
+ // read line
+ line = thresholdReader.readLine();
+ }
+ } catch (Exception eee) {
+ String msg = "Failed to read threshold file";
+ log.error(msg, eee);
+ throw new MascTechnicalException(msg, eee);
+ }
+ }
+ return thresholds;
+ }
+
public boolean getOptionAsBoolean(String propertyName) {
Boolean result = applicationConfig.getOptionAsBoolean(propertyName);
return result != null && result;
@@ -127,7 +197,11 @@
*/
public enum MascConfigOption implements ApplicationConfig.OptionDef {
- /** Main directory where to put echobase data (logs, and others...). */
+ /** Main directory where to put masc data (logs, and others...). */
+ DATA_DIRECTORY("data.directory",
+ n_("masc.config.data.directory.description"),
+ "/var/local/masc",
+ File.class),
VERSION("project.version",
"Version de l'application",
"", Version.class),
@@ -136,10 +210,10 @@
"", URL.class),
DEXI_APP_PATH("masc.dexi.path",
"Chemin de l'application masc",
- "", String.class),
+ null, String.class),
DEXI_EVAL_APP_PATH("masc.dexiEval.path",
"Chemin de l'application masc eval",
- "", String.class);
+ null, String.class);
/** Configuration key. */
protected final String key;
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class ComputableCriteriaImpl extends ComputableCriteria {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Modified: masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -5,4 +5,17 @@
* @since 0.1
*/
public abstract class CriteriaImpl extends Criteria {
+
+ @Override
+ public boolean equals(Object o) {
+
+ // only for criteria
+ if (!(o instanceof Criteria)) {
+ return false;
+ }
+ Criteria criteria = (Criteria) o;
+
+ // name is unique key
+ return super.getName().equals(criteria.getName());
+ }
}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,10 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public abstract class EditableCriteriaImpl extends EditableCriteria {
-}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class MascModelImpl extends MascModel {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/MascXmlConstant.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/MascXmlConstant.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/MascXmlConstant.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,30 @@
+package fr.inra.masc.model;
+
+/**
+ * Regroup all masc xml constants tags
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascXmlConstant {
+
+ public static final String DEXI = "DEXi";
+ public static final String LINE = "line";
+ public static final String ATTRIBUTE = "attribute";
+ public static final String MODEL_NAME = MascModel.PROPERTY_NAME;
+ public static final String MODEL_DESCRIPTION = MascModel.PROPERTY_DESCRIPTION;
+ public static final String OPTION = MascModel.PROPERTY_OPTION;
+ public static final String SETTINGS = MascModel.PROPERTY_SETTINGS;
+ public static final String CRITERIA_NAME = Criteria.PROPERTY_NAME;
+ public static final String CRITERIA_DESCRIPTION = Criteria.PROPERTY_DESCRIPTION;
+ public static final String SCALE = Criteria.PROPERTY_SCALE;
+ public static final String SCALE_VALUE = ScaleValue.class.getSimpleName();
+ public static final String SCALE_VALUE_NAME = ScaleValue.PROPERTY_NAME;
+ public static final String SCALE_VALUE_DESCRIPTION = ScaleValue.PROPERTY_DESCRIPTION;
+ public static final String SCALE_VALUE_GROUP = ScaleValue.PROPERTY_GROUP;
+ public static final String FUNCTION = ComputableCriteria.PROPERTY_FUNCTION;
+ public static final String FUNCTION_LOW = Function.PROPERTY_LOW;
+ public static final String FUNCTION_ENTERED = Function.PROPERTY_ENTERED;
+ public static final String FUNCTION_WEIGHTS = Function.PROPERTY_WEIGHTS;
+ public static final String FUNCTION_CONSIST = Function.PROPERTY_CONSIST;
+}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class OptionImpl extends Option {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class OptionValueImpl extends OptionValue {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class ScaleValueImpl extends ScaleValue {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class ThresholdCriteriaImpl extends ThresholdCriteria {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,15 +0,0 @@
-package fr.inra.masc.model;
-
-import fr.inra.masc.MascVisitor;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class ValuedCriteriaImpl extends ValuedCriteria {
-
- @Override
- public void accept(MascVisitor visitor) {
- // TODO
- }
-}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,8 +1,53 @@
package fr.inra.masc.services;
+import org.apache.commons.exec.CommandLine;
+import org.apache.commons.exec.DefaultExecutor;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.File;
+import java.io.IOException;
+
/**
* @author sletellier <letellier(a)codelutin.com>
*/
public class DexiEvalInvokerService extends MascService {
+ /** Logger */
+ private static Log log = LogFactory.getLog(OptionCRUDService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
+ /**
+ * Invoke DExIEval application with arguments
+ *
+ * @param importFile file to open in DEXiEval
+ * @param args additional arguments for DEXiEval
+ * @return evaluated file
+ * @throws java.io.IOException if command line fail
+ */
+ public File invokeDexiEval(File importFile, String... args) throws IOException {
+ File dexyEvalExecutableFile = getConfig().getDexiEvalExecutableFile();
+
+ CommandLine commandLine = new CommandLine(dexyEvalExecutableFile);
+
+ // add all arguments
+ commandLine.addArguments(args);
+
+ // open open dexi file
+ commandLine.addArgument(importFile.getAbsolutePath());
+
+ DefaultExecutor executor = new DefaultExecutor();
+
+ // invoke
+ int exitValue = executor.execute(commandLine);
+
+ if (log.isDebugEnabled()) {
+ log.debug("Command line '" + commandLine.toString() + "' exit with value : " + exitValue);
+ }
+ return importFile;
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,8 +1,61 @@
package fr.inra.masc.services;
+import fr.inra.masc.MascTechnicalException;
+import org.apache.commons.exec.CommandLine;
+import org.apache.commons.exec.DefaultExecutor;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.File;
+import java.io.IOException;
+
/**
* @author sletellier <letellier(a)codelutin.com>
* @since 0.1
*/
public class DexiInvokerService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(DexiInvokerService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
+ /**
+ * Invoke DEXi application
+ *
+ * @param importFile file to open in DEXi
+ */
+ public void invokeDexi(File importFile) {
+
+ File dexiApp = getConfig().getDexiExecutableFile();
+
+ final CommandLine commandLine = new CommandLine(dexiApp);
+
+ // open open dexi file
+ String dexiInputFile = importFile.getPath();
+ commandLine.addArgument(dexiInputFile);
+
+ if (log.isDebugEnabled()) {
+ log.debug("Starting DEXi with input file '" + dexiInputFile + "'");
+ }
+
+ // lunch DEXi in other thread
+ Thread tread = new Thread(new Runnable() {
+
+ @Override
+ public void run() {
+ // invoke dexi
+ try {
+ DefaultExecutor executor = new DefaultExecutor();
+ executor.execute(commandLine);
+ } catch (IOException eee) {
+ throwMascTechnicalException("Failed to lunch DEXi", eee);
+ }
+ }
+ });
+ tread.start();
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,8 +1,19 @@
package fr.inra.masc.services;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
/**
* @author sletellier <letellier(a)codelutin.com>
* @since 0.1
*/
public class ImageGeneratorService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(ImageGeneratorService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,17 +1,363 @@
package fr.inra.masc.services;
-import fr.inra.masc.model.MascModel;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Multimap;
+import fr.inra.masc.model.*;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.xmlpull.v1.XmlPullParser;
+import org.xmlpull.v1.XmlPullParserException;
+import org.xmlpull.v1.XmlPullParserFactory;
import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.*;
+import static fr.inra.masc.model.MascXmlConstant.*;
+
/**
+ * Service use to parse mascXmlFile and build MascModel corresponding
+ *
* @author sletellier <letellier(a)codelutin.com>
* @since 0.1
*/
public class LoadModelService extends MascService {
+ /** Logger */
+ private static Log log = LogFactory.getLog(LoadModelService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
public MascModel loadModel(File mascFile) {
- // TODO
- return null;
+
+ MascModel mascModel = null;
+ try {
+ XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
+ XmlPullParser parser = factory.newPullParser();
+ parser.setInput(new FileReader(mascFile));
+
+ // parse model parameters
+ mascModel = parseMascModel(parser);
+
+ } catch (XmlPullParserException eee) {
+ throwMascTechnicalException("Failed to parse masc file '" + mascFile.getName() + "'", eee);
+ } catch (FileNotFoundException eee) {
+ throwMascTechnicalException("Masc file '" + mascFile.getName() + "' not found", eee);
+ } catch (IOException eee) {
+ throwMascTechnicalException("Error reading masc file '" + mascFile.getName() + "'", eee);
+ }
+
+ return mascModel;
}
+
+ protected MascModel parseMascModel(XmlPullParser parser) throws IOException, XmlPullParserException {
+
+ MascModel model = new MascModelImpl();
+
+ parseMeta(model, parser);
+ parseAttributes(model, parser);
+
+ return model;
+ }
+
+ protected void parseMeta(MascModel model, XmlPullParser parser) throws IOException, XmlPullParserException {
+
+ // file must start with DEXi balise
+ if (parser.next() == XmlPullParser.START_TAG &&
+ !parserEqual(parser, DEXI)) {
+ throwMascTechnicalException("Masc file must start with " + DEXI + " tag");
+ }
+
+ // start parsing model parameters
+ // parse name
+ int eventType = parser.nextTag();
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, MODEL_NAME)) {
+ model.setName(parser.nextText());
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse description
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, MODEL_DESCRIPTION)) {
+
+ List<String> descriptions = Lists.newArrayList();
+ while (!(parser.nextTag() == XmlPullParser.END_TAG &&
+ parserEqual(parser, MODEL_DESCRIPTION))) {
+
+ if (parserEqual(parser, LINE)) {
+ descriptions.add(parser.nextText());
+ }
+ }
+
+ model.setDescription(descriptions);
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse options
+ List<Option> options = Lists.newLinkedList();
+ while (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, OPTION)) {
+
+ Option option = new OptionImpl();
+ option.setName(parser.nextText());
+ options.add(option);
+
+ // read end option tag
+ eventType = parser.nextTag();
+ }
+ model.setOption(options);
+
+ // parse settings
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, SETTINGS)) {
+
+ Map<String, String> settings = new LinkedHashMap<String, String>();
+ while (!(parser.nextTag() == XmlPullParser.END_TAG &&
+ parserEqual(parser, SETTINGS))) {
+ settings.put(parser.getName(), parser.nextText());
+ }
+ model.setSettings(settings);
+
+ // read next tag
+ parser.nextTag();
+ }
+ }
+
+ protected void parseAttributes(MascModel model, XmlPullParser parser) throws IOException, XmlPullParserException {
+ List<Criteria> criterias = Lists.newArrayList();
+ while (parser.getEventType() == XmlPullParser.START_TAG &&
+ parserEqual(parser, ATTRIBUTE)) {
+
+ Criteria criteria = parseAttribute(model, parser);
+ criterias.add(criteria);
+
+ // Read closeTag
+ parser.nextTag();
+ }
+ model.setCriteria(criterias);
+ }
+
+ protected Criteria parseAttribute(MascModel model, XmlPullParser parser) throws IOException, XmlPullParserException {
+
+ // parse name
+ int eventType = parser.nextTag();
+ if (eventType == XmlPullParser.START_TAG &&
+ !parserEqual(parser, CRITERIA_NAME)) {
+
+ log.info(parser.getName());
+ throwMascTechnicalException("All criteria must have a name");
+ }
+ String name = parser.nextText();
+
+ // read next tag
+ eventType = parser.nextTag();
+
+ // parse description
+ String description = null;
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, CRITERIA_DESCRIPTION)) {
+
+ description = parser.nextText();
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse scales
+ if (eventType == XmlPullParser.START_TAG &&
+ !parserEqual(parser, SCALE)) {
+
+ throwMascTechnicalException("All criteria must have a scalesValue");
+ }
+ List<ScaleValue> scaleValues = parseScale(parser);
+
+ // parse function
+ Function function = null;
+ if (parser.getEventType() == XmlPullParser.START_TAG &&
+ parserEqual(parser, FUNCTION)) {
+
+ function = parseFunction(parser);
+ }
+
+ // parse option value
+ int optionValueCnt = 0;
+ List<OptionValue> optionValues = Lists.newLinkedList();
+ while (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, OPTION)) {
+
+ OptionValue optionValue = new OptionValueImpl();
+ optionValue.setValue(Integer.parseInt(parser.nextText()));
+ Option option = model.getOption(optionValueCnt++);
+
+ // initialize option value list
+ if (option.getOptionValue() == null) {
+ LinkedList<OptionValue> optionValuesList = Lists.newLinkedList();
+ option.setOptionValue(optionValuesList);
+ }
+ option.addOptionValue(optionValue);
+ optionValues.add(optionValue);
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse attributes
+ List<Criteria> criterias = new ArrayList<Criteria>();
+ if (parser.getEventType() == XmlPullParser.START_TAG &&
+ parserEqual(parser, ATTRIBUTE)) {
+
+ while (!(parser.getEventType() == XmlPullParser.END_TAG &&
+ parserEqual(parser, ATTRIBUTE))) {
+
+ criterias.add(parseAttribute(model, parser));
+ parser.nextTag();
+ }
+ }
+
+ Criteria current;
+ if (function != null) {
+
+ // non editable criteria
+ ComputableCriteria computableCriteria = new ComputableCriteriaImpl();
+ computableCriteria.setFunction(function);
+ current = computableCriteria;
+ } else {
+
+ // editable criteria
+ // check on properties if its a threshold criteria
+ Multimap<String,Integer> thresholds = getConfig().getThresholds();
+ if (thresholds.containsKey(name)) {
+ ThresholdCriteria thresholdCriteria = new ThresholdCriteriaImpl();
+ Collection<Integer> values = thresholds.get(name);
+ thresholdCriteria.setValues(values);
+ current = thresholdCriteria;
+ } else {
+ // else is a valued one
+ current = new ValuedCriteriaImpl();
+ }
+ }
+
+ // fill options values
+ for (OptionValue optionValue : optionValues) {
+ optionValue.setCriteria(current);
+ }
+
+ // fill criteria
+ current.setName(name);
+ current.setDescription(description);
+ current.setScale(scaleValues);
+ current.setChildren(criterias);
+
+ return current;
+ }
+
+ protected List<ScaleValue> parseScale(XmlPullParser parser) throws IOException, XmlPullParserException {
+
+ List<ScaleValue> scaleValues = new ArrayList<ScaleValue>();
+ while (!(parser.nextTag() == XmlPullParser.END_TAG &&
+ parserEqual(parser, SCALE))) {
+
+ // parse name
+ int eventType = parser.nextTag();
+ if (eventType == XmlPullParser.START_TAG &&
+ !parserEqual(parser, SCALE_VALUE_NAME)) {
+
+ throwMascTechnicalException("All scale value must have a name");
+ }
+ ScaleValue scaleValue = new ScaleValueImpl();
+ scaleValue.setName(parser.nextText());
+ eventType = parser.nextTag();
+
+ // parse description
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, SCALE_VALUE_DESCRIPTION)) {
+
+ scaleValue.setDescription(parser.nextText());
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse group
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, SCALE_VALUE_GROUP)) {
+
+ String groupValue = parser.nextText();
+ scaleValue.setGroup(ScaleGroup.valueOf(groupValue));
+
+ // read next tag
+ parser.nextTag();
+ }
+ scaleValues.add(scaleValue);
+ }
+ // read scale close tag
+ parser.nextTag();
+
+ return scaleValues;
+ }
+
+ protected Function parseFunction(XmlPullParser parser) throws IOException, XmlPullParserException {
+ Function function = new FunctionImpl();
+
+ // parse low
+ int eventType = parser.nextTag();
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, FUNCTION_LOW)) {
+
+ function.setLow(parser.nextText());
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse entered
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, FUNCTION_ENTERED)) {
+
+ function.setEntered(parser.nextText());
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse weights
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, FUNCTION_WEIGHTS)) {
+
+ function.setWeights(parser.nextText());
+
+ // read next tag
+ eventType = parser.nextTag();
+ }
+
+ // parse consist
+ if (eventType == XmlPullParser.START_TAG &&
+ parserEqual(parser, FUNCTION_CONSIST)) {
+
+ function.setConsist(Boolean.parseBoolean(parser.nextText()));
+
+ // read next tag
+ parser.nextTag();
+ }
+
+ // read function close tag
+ parser.nextTag();
+
+ return function;
+ }
+
+ protected boolean parserEqual(XmlPullParser parser, String name) {
+ String tagName = parser.getName();
+ return tagName.equalsIgnoreCase(name);
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,6 +1,8 @@
package fr.inra.masc.services;
import fr.inra.masc.MascConfig;
+import fr.inra.masc.MascTechnicalException;
+import org.apache.commons.logging.Log;
/**
* Contract to place on each Masc service to push the {@code serviceContext}
@@ -21,4 +23,16 @@
public MascConfig getConfig() {
return serviceContext.getConfig();
}
+
+ public abstract Log getLogger();
+
+ protected void throwMascTechnicalException(String msg, Exception eee) {
+ getLogger().error(msg, eee);
+ throw new MascTechnicalException(msg, eee);
+ }
+
+ protected void throwMascTechnicalException(String msg) {
+ getLogger().error(msg);
+ throw new MascTechnicalException(msg);
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,8 +1,36 @@
package fr.inra.masc.services;
+import fr.inra.masc.model.MascModel;
+import fr.inra.masc.model.Option;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
/**
* @author sletellier <letellier(a)codelutin.com>
* @since 0.1
*/
public class OptionCRUDService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(OptionCRUDService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
+
+ public MascModel addOption(MascModel mascModel, Option option) {
+ // TODO
+ return mascModel;
+ }
+
+ public MascModel removeOption(MascModel mascModel, Option option) {
+ // TODO
+ return mascModel;
+ }
+
+ public MascModel editOption(MascModel mascModel, Option option) {
+ // TODO
+ return mascModel;
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,8 +1,19 @@
package fr.inra.masc.services;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
/**
* @author sletellier <letellier(a)codelutin.com>
* @since 0.1
*/
public class ReportGeneratorService extends MascService {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(ReportGeneratorService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
+ }
}
Modified: masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java 2011-12-09 18:10:32 UTC (rev 514)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -1,17 +1,256 @@
package fr.inra.masc.services;
-import fr.inra.masc.model.MascModel;
+import com.google.common.collect.LinkedListMultimap;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Multimap;
+import fr.inra.masc.model.*;
+import org.apache.commons.collections.CollectionUtils;
+import org.apache.commons.collections.MapUtils;
+import org.apache.commons.lang3.StringEscapeUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Collection;
+import java.util.LinkedList;
+import java.util.Map;
+import static fr.inra.masc.model.MascXmlConstant.*;
+
/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
+ * Service to save masc model
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
public class SaveModelService extends MascService {
- public File saveModel(MascModel mascModel) {
- // TODO
- return null;
+ /** Logger */
+ private static Log log = LogFactory.getLog(SaveModelService.class);
+
+ @Override
+ public Log getLogger() {
+ return log;
}
+
+ public void saveModel(MascModel model, File saveFile) {
+
+ DexiXmlWriter dexiXmlWriter = new DexiXmlWriter(model);
+ Element xml = dexiXmlWriter.composeXml();
+
+ FileWriter writer = null;
+ try {
+ writer = new FileWriter(saveFile);
+ writer.write(xml.toXml(2));
+ } catch (IOException eee) {
+ throwMascTechnicalException("Failed to write document", eee);
+ } finally {
+ if (writer != null) {
+ try {
+ writer.close();
+ } catch (IOException eee) {
+ throwMascTechnicalException("Failed to close document", eee);
+ }
+ }
+ }
+ }
+
+ protected class DexiXmlWriter {
+
+ protected MascModel model;
+ protected Multimap<Criteria, OptionValue> criteriaOptionValues;
+
+ public DexiXmlWriter(MascModel model) {
+ this.model = model;
+ this.criteriaOptionValues = LinkedListMultimap.create();
+ }
+
+ public Element composeXml() {
+ Element rootElement = new Element(DEXI);
+ composeMeta(rootElement);
+ composeAttributes(rootElement);
+
+ return rootElement;
+ }
+
+
+ protected void composeMeta(Element rootElement) {
+
+ // model name
+ add(rootElement, MODEL_NAME, model.getName());
+
+ // model description
+ Element descriptionElement = createElement(rootElement, MODEL_DESCRIPTION);
+ for (String line : model.getDescription()) {
+ add(descriptionElement, LINE, line);
+ }
+
+ // options
+ for (Option option : model.getOption()) {
+ add(rootElement, OPTION, option.getName());
+
+ // load all option values
+ for (OptionValue optionValue : option.getOptionValue()) {
+
+ // fill map
+ Criteria criteria = optionValue.getCriteria();
+ criteriaOptionValues.put(criteria, optionValue);
+ }
+ }
+
+ // settings
+ Map<String,String> settings = model.getSettings();
+ if (MapUtils.isNotEmpty(settings)) {
+ Element settingElement = createElement(rootElement, SETTINGS);
+ for (String settingName : settings.keySet()) {
+ String settingsValue = settings.get(settingName);
+ add(settingElement, settingName, settingsValue);
+ }
+ }
+ }
+
+ protected void composeAttributes(Element rootElement) {
+ Collection<Criteria> criterias = model.getCriteria();
+ if (CollectionUtils.isNotEmpty(criterias)) {
+ for (Criteria criteria : criterias) {
+ composeAttribute(criteria, rootElement);
+ }
+ }
+ }
+
+ protected void composeAttribute(Criteria criteria, Element rootElement) {
+ Element attributeElement = createElement(rootElement, ATTRIBUTE);
+
+ // attribute name
+ add(attributeElement, CRITERIA_NAME, criteria.getName());
+
+ // attribute description
+ add(attributeElement, CRITERIA_DESCRIPTION, criteria.getDescription());
+
+ // scale
+ Element scaleElement = createElement(attributeElement, SCALE);
+
+ // scale values
+ for (ScaleValue scaleValue : criteria.getScale()) {
+ Element scaleValueElement = createElement(scaleElement, SCALE_VALUE);
+ add(scaleValueElement, SCALE_VALUE_NAME, scaleValue.getName());
+ add(scaleValueElement, SCALE_VALUE_DESCRIPTION, scaleValue.getDescription());
+ add(scaleValueElement, SCALE_VALUE_GROUP, scaleValue.getGroup());
+ }
+
+ // function
+ if (criteria instanceof ComputableCriteria) {
+ ComputableCriteria computableCriteria = (ComputableCriteria) criteria;
+ Element functionElement = createElement(attributeElement, FUNCTION);
+ Function function = computableCriteria.getFunction();
+ add(functionElement, FUNCTION_LOW, function.getLow());
+ add(functionElement, FUNCTION_ENTERED, function.getEntered());
+ add(functionElement, FUNCTION_WEIGHTS, function.getWeights());
+ add(functionElement, FUNCTION_CONSIST, function.getConsist());
+ }
+
+ // options
+ Collection<OptionValue> optionValues = criteriaOptionValues.get(criteria);
+ for (OptionValue optionValue : optionValues) {
+ add(attributeElement, OPTION, optionValue.getValue());
+ }
+
+ // children
+ for (Criteria child : criteria.getChildren()) {
+ composeAttribute(child, attributeElement);
+ }
+ }
+
+ protected void add(Element parentElement, String tagName, Object value) {
+ if (value != null) {
+ String toString = value.toString();
+
+ // boolean are capitalized in masc xml file
+ if (value instanceof Boolean) {
+ toString = StringUtils.capitalize(toString);
+ }
+ createElement(parentElement, tagName, toString);
+ }
+ }
+
+ protected Element createElement(Element parentElement, String tagName) {
+ return createElement(parentElement, tagName, null);
+ }
+
+ protected Element createElement(Element parentElement, String tagName, String text) {
+ Element element = createElement(tagName.toUpperCase(), text);
+ parentElement.add(element);
+ return element;
+ }
+
+ protected Element createElement(String tagName, String text) {
+ return new Element(tagName, text);
+ }
+
+ }
+
+ protected class Element {
+
+ public static final String XML_META = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
+
+ protected LinkedList<Element> children;
+ protected String tagName;
+ protected String text;
+
+ public Element(String tagName) {
+ this(tagName, null);
+ }
+
+ public Element(String tagName, String text) {
+ this.tagName = tagName;
+ this.text = text;
+ this.children = Lists.newLinkedList();
+ }
+
+ public void add(Element e) {
+ this.children.add(e);
+ }
+
+ public String toXml(int indent) {
+ StringBuilder stringBuilder = new StringBuilder(XML_META).append("\n");
+ buildXml(-indent, indent, stringBuilder);
+ return stringBuilder.toString();
+ }
+
+ protected void buildXml(int start, int indent, StringBuilder stringBuilder) {
+
+ // closed tag if content is empty
+ if (children.isEmpty() && StringUtils.isEmpty(text)) {
+ stringBuilder.append(getIndentPrefix(start, indent)).append("<").append(tagName).append("/>").append("\n");
+ return;
+ }
+
+ // start tag
+ stringBuilder.append(getIndentPrefix(start, indent)).append("<").append(tagName).append(">");
+ if (StringUtils.isNotEmpty(text)) {
+ stringBuilder.append(StringEscapeUtils.escapeXml(text));
+
+ // end inline tag
+ stringBuilder.append("</").append(tagName).append(">").append("\n");
+ } else {
+ stringBuilder.append("\n");
+ for (Element child : children) {
+ child.buildXml(start + indent, indent, stringBuilder);
+ }
+ // end tag
+ stringBuilder.append(getIndentPrefix(start, indent)).append("</").append(tagName).append(">").append("\n");
+ }
+ }
+
+ protected String getIndentPrefix(int start, int lenght) {
+ String result = "";
+ for (int i=0;i<start + lenght;i++) {
+ result += " ";
+ }
+ return result;
+ }
+ }
}
Modified: masc/masc-api/src/main/xmi/masc.zargo
===================================================================
(Binary files differ)
Added: masc/masc-api/src/test/java/fr/inra/masc/services/AbstractServiceTest.java
===================================================================
--- masc/masc-api/src/test/java/fr/inra/masc/services/AbstractServiceTest.java (rev 0)
+++ masc/masc-api/src/test/java/fr/inra/masc/services/AbstractServiceTest.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,82 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.MascConfig;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public abstract class AbstractServiceTest extends Assert {
+
+ protected static File testWorkDir;
+ protected static File testResourcesDir;
+ public static final String DEXI_FILE = "dexi2.0.dxi";
+ public static final String DEXI_MODEL_FILE = "dexi-model2.0.dxi";
+
+ protected MascConfig config;
+ protected MascServiceFactory serviceFactory;
+
+ @BeforeClass
+ public static void initTest() throws IOException {
+ // get maven env basedir
+ String basedir = System.getenv("basedir");
+ if (basedir == null) {
+
+ // says basedir is where we start tests.
+ basedir = new File("").getAbsolutePath();
+ }
+ File basedirFile = new File(basedir);
+ testWorkDir = new File(basedirFile,
+ "target" + File.separator +
+ "surefire-workdir");
+
+ boolean b = testWorkDir.exists() || testWorkDir.mkdirs();
+ if (!b) {
+ throw new IOException(
+ "Could not create workdir directory " + testWorkDir);
+ }
+
+ testResourcesDir = new File(basedirFile,
+ "src" + File.separator +
+ "test" + File.separator +
+ "resources" + File.separator);
+ }
+
+ public File getTestFile(String testName) {
+ return new File(testResourcesDir, testName);
+ }
+
+ public File getDexiTestFile() {
+ return getTestFile("dxi" + File.separator + DEXI_FILE);
+ }
+
+ public File getDexiModelTestFile() {
+ return getTestFile("dxi" + File.separator + DEXI_MODEL_FILE);
+ }
+
+ public MascServiceFactory getServiceFactory() {
+ if (serviceFactory == null) {
+ serviceFactory = new MascServiceFactory();
+ }
+ return serviceFactory;
+ }
+
+ public MascConfig getConfig() {
+ if (config == null) {
+ config = new MascConfig();
+ }
+ return config;
+ }
+
+ protected <E extends MascService> E getService(Class<E> clazz) throws Exception {
+
+ MascServiceContext context = new MascServiceContext(getConfig(), getServiceFactory());
+ return getServiceFactory().newService(clazz, context);
+ }
+
+}
Added: masc/masc-api/src/test/java/fr/inra/masc/services/EvalInvokerServiceTest.java
===================================================================
--- masc/masc-api/src/test/java/fr/inra/masc/services/EvalInvokerServiceTest.java (rev 0)
+++ masc/masc-api/src/test/java/fr/inra/masc/services/EvalInvokerServiceTest.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,25 @@
+package fr.inra.masc.services;
+
+import org.junit.Assume;
+import org.junit.Ignore;
+import org.junit.Test;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class EvalInvokerServiceTest extends AbstractServiceTest {
+
+ @Test
+ @Ignore // not yet implemented
+ public void testInvokeDexiEval() throws Exception {
+ // assume that DEXiEval executable is configured
+ File dexiEvalExecutableFile = getConfig().getDexiEvalExecutableFile();
+ Assume.assumeTrue(dexiEvalExecutableFile != null && dexiEvalExecutableFile.exists());
+
+ DexiEvalInvokerService service = getService(DexiEvalInvokerService.class);
+ service.invokeDexiEval(getDexiTestFile());
+ }
+}
Added: masc/masc-api/src/test/java/fr/inra/masc/services/InvokerServiceTest.java
===================================================================
--- masc/masc-api/src/test/java/fr/inra/masc/services/InvokerServiceTest.java (rev 0)
+++ masc/masc-api/src/test/java/fr/inra/masc/services/InvokerServiceTest.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,23 @@
+package fr.inra.masc.services;
+
+import org.junit.Assume;
+import org.junit.Test;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class InvokerServiceTest extends AbstractServiceTest {
+
+ @Test
+ public void testInvokeDexi() throws Exception {
+ // assume that DEXi executable is configured
+ File dexiExecutableFile = getConfig().getDexiExecutableFile();
+ Assume.assumeTrue(dexiExecutableFile != null && dexiExecutableFile.exists());
+
+ DexiInvokerService service = getService(DexiInvokerService.class);
+ service.invokeDexi(getDexiTestFile());
+ }
+}
Added: masc/masc-api/src/test/java/fr/inra/masc/services/LoadModelServiceTest.java
===================================================================
--- masc/masc-api/src/test/java/fr/inra/masc/services/LoadModelServiceTest.java (rev 0)
+++ masc/masc-api/src/test/java/fr/inra/masc/services/LoadModelServiceTest.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,26 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.model.MascModel;
+import org.junit.Test;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ */
+public class LoadModelServiceTest extends AbstractServiceTest {
+
+ @Test
+ public void testLoadModelWithDexiTestModelFile() throws Exception {
+ File dexiTestFile = getDexiModelTestFile();
+ MascModel mascModel = getService(LoadModelService.class).loadModel(dexiTestFile);
+ assertNotNull(mascModel);
+ }
+
+ @Test
+ public void testLoadModelWithDexiTestFile() throws Exception {
+ File dexiTestFile = getDexiTestFile();
+ MascModel mascModel = getService(LoadModelService.class).loadModel(dexiTestFile);
+ assertNotNull(mascModel);
+ }
+}
Added: masc/masc-api/src/test/java/fr/inra/masc/services/SaveModelServiceTest.java
===================================================================
--- masc/masc-api/src/test/java/fr/inra/masc/services/SaveModelServiceTest.java (rev 0)
+++ masc/masc-api/src/test/java/fr/inra/masc/services/SaveModelServiceTest.java 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,57 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.model.MascModel;
+import org.apache.commons.io.FileUtils;
+import org.custommonkey.xmlunit.Diff;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.xml.sax.SAXException;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ */
+public class SaveModelServiceTest extends AbstractServiceTest {
+
+ @Test
+ @Ignore // TODO sletellier 20111209 : fix line separator
+ public void testSaveModelWithDexiTestModelFile() throws Exception {
+
+ File dexiTestFile = getDexiModelTestFile();
+ MascModel mascModel = getService(LoadModelService.class).loadModel(dexiTestFile);
+
+ File savedFile = new File(testWorkDir, "dexiTestModelFileResult.dxi");
+ getService(SaveModelService.class).saveModel(mascModel, savedFile);
+
+ // compare input and output files
+ assertFilesEquals(dexiTestFile, savedFile);
+ }
+
+ @Test
+ public void testSaveWithDexiTestFile() throws Exception {
+
+ File dexiTestFile = getDexiTestFile();
+ MascModel mascModel = getService(LoadModelService.class).loadModel(dexiTestFile);
+
+ File savedFile = new File(testWorkDir, "dexiTestFileResult.dxi");
+ getService(SaveModelService.class).saveModel(mascModel, savedFile);
+
+ // compare input and output files
+ assertFilesEquals(dexiTestFile, savedFile);
+ }
+
+ protected void assertFilesEquals(File in, File out) throws IOException, SAXException {
+ String input = FileUtils.readFileToString(in);
+ String output = FileUtils.readFileToString(out);
+
+ assertEquals(input.trim(), output.trim());
+
+ Diff myDiff = new Diff(input, output);
+ assertTrue("XML similar " + myDiff.toString(),
+ myDiff.similar());
+ assertTrue("XML identical " + myDiff.toString(),
+ myDiff.identical());
+ }
+}
Added: masc/masc-api/src/test/resources/dxi/dexi-model2.0.dxi
===================================================================
--- masc/masc-api/src/test/resources/dxi/dexi-model2.0.dxi (rev 0)
+++ masc/masc-api/src/test/resources/dxi/dexi-model2.0.dxi 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,2916 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<DEXi>
+ <NAME>MASC 2.0</NAME>
+ <DESCRIPTION>
+ <LINE>Le modele MASC 2.0 a ete conçu pour faciliter l evaluation multicritere de la contribution des systemes de grandes cultures au developpement durable. Il peut etre utilise dans le cadre de diverses etudes a caractere exploratoire pour effectuer notamment :</LINE>
+ <LINE/>
+ <LINE>- de l analyse des performances globales des systemes de culture ou d une comparaison des performances de plusieurs systemes existants dans un territoire (evaluation ex post)</LINE>
+ <LINE/>
+ <LINE>- des études de nouveaux systèmes de culture en comparaison (ou non) avec des systemes existants construits dans le cadre d'une conception par prototypage suivi d'une evaluation ex ante.</LINE>
+ <LINE/>
+ <LINE>Il s agit de confronter les performances elementaires du systeme de culture a un jeu de preferences afin d'obtenir une note globale de durabilite puis eventuellement de fournir un classement comparatif et argumente de plusieurs systemes de cultures evalues avec un meme profil de preferences.</LINE>
+ <LINE/>
+ <LINE>Le modele MASC 2.0 derive du modele MASC V1.0 (Sadok et al., 2009). Il a ete developpe dans le cadre du projet GIS HPEE, en tenant compte de l'experience acquise par les utilisateurs de la version 1.0 de l'outil. Il fait l'objet des documents d'accompagnement suivants :</LINE>
+ <LINE/>
+ <LINE>Craheix D., Angevin F., Bergez J.-E., Bockstaller C., Colomb B., Guichard L., Reau R., Sadok W., Doré T (2011). MASC 2.0, Un outil pour l analyse de la contribution des systèmes de culture au developpement durable. Jeu complet de fiches criteres de MASC 2.0. INRA - AgroParisTech - GIS GC HP2E, 133 p.</LINE>
+ <LINE/>
+ <LINE>Craheix D., Angevin F., Bergez J.-E., Bockstaller C., Colomb B., Guichard L., Reau R., Sadok W., Doré T (2011). MASC 2.0, Un outil pour l'analyse de la contribution des systemes de culture au developpement durable. Presentation & principes d utilisation. INRA - AgroParisTech - GIS GC HP2E, 54 p.</LINE>
+ <LINE/>
+ <LINE>Le modele d evaluation qualitative etabli avec le present outil DEXi 3.03 repose sur la definition de fonctions d utilite qui realisent les agregations des criteres d evaluation a partir de regles de raisonnement qualitatif. Ces regles determinent la ponderation des critères dans le processus d'agregation, pour parvenir au diagnostic de leur contribution au developpement durable. Les regles incorporees actuellement dans l'outil et les ponderations qui en decoulent ne doivent pas être considerees comme normatives. Elles ont ete etablies a titre d'exemple et doivent être reconsiderees par les utilisateurs, en fonction des specificites du projet d'evaluation et des preoccupations associees aux systemes de culture a evaluer. </LINE>
+ <LINE/>
+ <LINE>Le choix des modes de calcul ou d'evaluation par expertise dirigee des indicateurs basiques est sous l entiere responsabilite de l utilisateur ou du collectif d utilisation. Aucun choix normatif concernant ces modes n'est associe à la presente version du modele MASC 2.0.</LINE>
+ </DESCRIPTION>
+ <SETTINGS>
+ <LINKING>True</LINKING>
+ <PAGEBREAK>True</PAGEBREAK>
+ <EVALTRIM>10</EVALTRIM>
+ <FONTSIZE>8</FONTSIZE>
+ <FONTNAME>Courier New</FONTNAME>
+ </SETTINGS>
+ <ATTRIBUTE>
+ <NAME>Contribution au developpement durable</NAME>
+ <DESCRIPTION>CDDUR Contribution du SDC au developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>assez faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>assez elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>00000000110011201123012330001100112012231123412345001120122312334123452345601123122341234523456345660123312345234563456635666</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Dimension economique</NAME>
+ <DESCRIPTION>CDECO Contribution du SDC a la dimension economique du developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0001001101121123001101121123123301121123123423441123123423443444</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Resultats economiques</NAME>
+ <DESCRIPTION>RES Resultats economiques du SDC pour l agriculteur</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000000111000111122222111122223233112222333333</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Rentabilite</NAME>
+ <DESCRIPTION>MSN Rentabilite a court terme du SDC calculee avec la marge semi-nette</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Autonomie economique</NAME>
+ <DESCRIPTION>AUTECO Autonomie du SDC vis a vis des aides publiques et des intrants</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Independance economique</NAME>
+ <DESCRIPTION>IND Independance economique vis-a-vis dess aides incluses dans la marge semi-nette</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Efficience economique</NAME>
+ <DESCRIPTION>EFF Efficience economique vis-a-vis des intrants comptabilises dans la marge semi-nette</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Surcout en materiel</NAME>
+ <DESCRIPTION>MAT Surcout en investissements lies au materiel supplementaire specifique au SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Capacite productive a long terme</NAME>
+ <DESCRIPTION>CPLT Evolution de la capacite productive des parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite physico-chimique</NAME>
+ <DESCRIPTION>MFPC Evolution de la fertilite physico-chimique dans les parcelles soumises au SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise du statut acido-basique du sol</NAME>
+ <DESCRIPTION>MSAB Evolution du statut acido-basique du sol dans les parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l etat structural du sol</NAME>
+ <DESCRIPTION>MES Evolution de la structure du sol dans les parcelles soumises au SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite phosphopotassique</NAME>
+ <DESCRIPTION>MFPP Evolution de la fertilite phospho-potassique des parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des bioagresseurs</NAME>
+ <DESCRIPTION>MBAGR Evolution de la pression des bioagresseurs dans les parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des maladies et ravageurs</NAME>
+ <DESCRIPTION>MMR Evolution de la pression de maladies et de ravageurs telluriques </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des adventices</NAME>
+ <DESCRIPTION>MADV Evolution de la pression des adventices </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Contribution au developpement economique</NAME>
+ <DESCRIPTION>CDEV Contribution du SDC au developpement economique des filieres et du territoire</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000112223333</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Qualite des produits</NAME>
+ <DESCRIPTION>QP Risque de non atteinte de niveau de qualite des recoltes exige par les filieres</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000112233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Qualite sanitaire</NAME>
+ <DESCRIPTION>QS Risque de non atteinte de niveau de qualite sanitaire exige par les filieres</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Qualite technonologique et esthetique des produits</NAME>
+ <DESCRIPTION>QTEP Risque de non atteinte du niveau de qualite technologique/esthetique exige</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Contribution a l emergence de filieres</NAME>
+ <DESCRIPTION>CENF Contribution a l emergence de nouvelles filieres</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>nulle</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>Moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dimension sociale</NAME>
+ <DESCRIPTION>CDSOC Contribution du SDC a la dimension sociale du developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0012012312342344</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Satisfaction des attentes de la societe</NAME>
+ <DESCRIPTION>SATISS Compatibilite du SDC avec les attentes supposees de la societe</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Contribution a l emploi</NAME>
+ <DESCRIPTION>EMP Contribution du SDC a l insertion sociale et au developpement local par les emplois </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Fourniture de matieres premieres</NAME>
+ <DESCRIPTION>FMP Contribution du SDC a satisfaire les besoins de la societe en produits agricoles</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Satisfaction des attentes de l agriculteur</NAME>
+ <DESCRIPTION>SATISA Compatibilite du SDC avec les attentes sociales de l agriculteur</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Facilite de mise en oeuvre</NAME>
+ <DESCRIPTION>FMO Appreciation qualitative des difficultes techniques liees a la realisation du SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000112123333</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Complexite des itineraires techniques</NAME>
+ <DESCRIPTION>CIT Complexite des interventions culturales induites par le SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Temps de veille technico-economique</NAME>
+ <DESCRIPTION>TVTE Difficulte de mise en oeuvre d un SDC compose de cultures differentes</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Qualite des conditions de travail</NAME>
+ <DESCRIPTION>QCT Impact du SDC sur les conditions de travail de l agriculteur ou des ouvriers</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000011012000012023000023033</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Surcharge de travail</NAME>
+ <DESCRIPTION>SDT Contribution du SDC a la surcharge de travail en periode de pointe</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Risque pour la sante de l applicateur</NAME>
+ <DESCRIPTION>TOX Risque d intoxication du travailleur lors de la manipulation des produits phytosanitaires</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <DESCRIPTION>> 2</DESCRIPTION>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ <DESCRIPTION>1 < Tox < ou = 2</DESCRIPTION>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <DESCRIPTION>0 < Tox < ou = 1</DESCRIPTION>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Difficulte physique</NAME>
+ <DESCRIPTION>DIFF Niveau de penibilite physique associe a la conduite des operations culturales du SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dimension environnementale</NAME>
+ <DESCRIPTION>CDENV Contribution du SDC a la dimension environnementale du developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0001001101121123001101121123123301121123123423441123123423443444</LOW>
+ <WEIGHTS>33;33;33</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Contribution a la qualite du milieu</NAME>
+ <DESCRIPTION>CQM Contribution du SDC a preserver les composantes air-eau-sol du milieu</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Contribution a la qualite de l eau</NAME>
+ <DESCRIPTION>CQE Contribution du SDC a preserver la qualite de l eau</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de pesticides Eaux</NAME>
+ <DESCRIPTION>MPPE Risque de pollution des eaux profondes et superficielles par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise pertes dans les eaux profondes</NAME>
+ <DESCRIPTION>MPEP Risque de pollution des eaux profondes par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise pertes dans les eaux superficielles</NAME>
+ <DESCRIPTION>MPES Risque de pollution des eaux superficielles par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de NO3</NAME>
+ <DESCRIPTION>MPNO3 Risque de pollution des eaux induit par les nitrates</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de P</NAME>
+ <DESCRIPTION>MPPH Risque de pollution des eaux induit par le phosphore</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Contribution a la qualite air</NAME>
+ <DESCRIPTION>CQA Contribution du SDC a preserver la qualite de l air</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000000100110112000000110112112300010112112312330011012212332333</LOW>
+ <WEIGHTS>30;40;30</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des emissions de NH3</NAME>
+ <DESCRIPTION>MNH3 Risque de pertes d ammoniac par volatilisation </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des emissions de N2O</NAME>
+ <DESCRIPTION>MN2O Risque de pertes de protoxyde d azote dans l air</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des emissions de pesticides Air</NAME>
+ <DESCRIPTION>MPA Risque de pollution atmospherique par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Preservation de la qualite du sol</NAME>
+ <DESCRIPTION>PQS Contribution du SDC a preserver la qualite du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000000000000000000000110111011200110111012301330011011201330233</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l accumulation d elements toxiques</NAME>
+ <DESCRIPTION>MAET Maitrise a long terme de l accumulation d elements toxiques dans le sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise du statut organique</NAME>
+ <DESCRIPTION>MSO Maitrise de la teneur en matiere organique du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l erosion</NAME>
+ <DESCRIPTION>MERO Maitrise du risque d erosion du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pression sur les ressources abiotiques</NAME>
+ <DESCRIPTION>PSRA Pression exercee par le SDC sur les ressources abiotiques</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <WEIGHTS>33;33;33</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Pression Eau</NAME>
+ <DESCRIPTION>PSEAU Pression exercee par le SDC sur la disponibilite locale en eau douce</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001112233</LOW>
+ <WEIGHTS>70;30</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Conso. en eau d irrigation en periode critique</NAME>
+ <DESCRIPTION>IRRC Consommation d eau d irrigation en periodes critiques (secheresse/etiage)</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dependance vis a vis de la ressource en eau</NAME>
+ <DESCRIPTION>DPEAU Autonomie du SDC vis-a-vis de la ressource en eau</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pression Energie</NAME>
+ <DESCRIPTION>PSEN Impact du SDC sur la durabilite des ressources energetiques</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>011122123</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Consommation en energie</NAME>
+ <DESCRIPTION>CEN Consommation brute en energie fossile associee a la conduite du SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <DESCRIPTION><4</DESCRIPTION>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ <DESCRIPTION>[4-7[</DESCRIPTION>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <DESCRIPTION>>=7</DESCRIPTION>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Efficience energetique</NAME>
+ <DESCRIPTION>EEN Rapport d efficience entre lenergie produite et energie consommee par le SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pression Phosphore</NAME>
+ <DESCRIPTION>PSPH Pression exerce par leSDC sur les ressources biogeochimiques en phosphore</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la biodiversite</NAME>
+ <DESCRIPTION>CBIODI Contribution du SDC a preserver la biodiversite peu mobile</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000000101121122000000111122122300000122122322330000112222332333</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Conservation de la macrofaune</NAME>
+ <DESCRIPTION>CMF Contribution du SDC a preserver l abondance et la diversite de la macrofaune</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012201230233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Conservation des insectes volants</NAME>
+ <DESCRIPTION>CMIV Contribution du SDC a preserver l abondance et la diversite des insectes volants</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la macrofaune du sol</NAME>
+ <DESCRIPTION>CMS Contribution du SDC a preserver l abondance et la diversite de la macrofaune du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la flore</NAME>
+ <DESCRIPTION>CFLO Contribution du SDC a preserver l abondance et la diversite floristique</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Abondance floristique</NAME>
+ <DESCRIPTION>ABOF Contribution du SDC a preserver l abondance floristique</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>3210</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des adventices</NAME>
+ <DESCRIPTION>MADV Pression sur la flore adventice (inverse du critere maitrise des adventices)</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Diversite floristique</NAME>
+ <DESCRIPTION>DF Contribution du SDC a preserver la diversite floristique dans les parcelles</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation des micro-organismes du sol</NAME>
+ <DESCRIPTION>CMOS Contribution du SDC a preserver l abondance et la diversite des microorganismes du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise du statut acido-basique du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001100220012012201220133222202232233</LOW>
+ <ENTERED>++++++++++++++++++++++++++--+---+---</ENTERED>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Statut acido-basique initial</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>CEC (Pouvoir tampon du sol)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Impact du SDC</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0012012212222223</LOW>
+ <ENTERED>+--------------+</ENTERED>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet des pratiques acidifiantes</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des amendements basiques</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l etat structural du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011001212332233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Degradation de la structure du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>01122323</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Proportion de cultures recoltees en mauvaises conditions</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des equipements limitant le tassement</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Regeneration de la structure du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0012012211132233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Aptitude du sol a la fissuration</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Regeneration mecanique de la structure</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite phosphopotassique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101230133</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertitilite phosphorique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000111221001222333001233333</LOW>
+ <WEIGHTS>60;29;20</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Etat de fertilite initiale P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Bilan et recyclage interne de P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001001111122222</LOW>
+ <WEIGHTS>62;39</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Bilan annuel moyen de P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Recyclage du P par les residus de recolte</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pouvoir tampon du sol P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite potassique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000111221001222333001233333</LOW>
+ <WEIGHTS>28;63;6</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Etat de la fertilite initiale de K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Bilan et recyclage interne de K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000001112122222</LOW>
+ <WEIGHTS>60.3960396039604;39.6039603960396</WEIGHTS>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Bilan annuel moyen de K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Recyclage du K par les residus de recolte</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pouvoir tampon du sol K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des maladies et ravageurs</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000011111011111112122111122233233</LOW>
+ <WEIGHTS>50;30;20</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des familles cultivees</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du travail du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des methodes de lutte (maladies et ravageurs)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des adventices</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001011012112122122122223223223</LOW>
+ <WEIGHTS>38.4615384615385;38.4615384615385;23.0769230769231</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des periodes d implantation</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du labour</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des methodes de lutte (adventices)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000000001000011111111011112223233112222233333</LOW>
+ <WEIGHTS>55;30;15</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Gestion des amendements</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>011122223</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Quantite de P apportee en moyenne</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Methode d incorporaton des amendements P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l erosion</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Teneur en P du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>210</LOW>
+ <WEIGHTS>100</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Etat de fertilite initiale P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l erosion</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>00110012112312332333</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Sensibilite du milieu</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres forte</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>forte</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du SDC</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000111111112211221122222222333322223322332333</LOW>
+ <WEIGHTS>55;35;10</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Defauts de couverture du sol en periodes a risque (erosion)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du travail du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l etat structural du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dependance vis a vis de la ressource en eau</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001101121122</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Demande en eau des cultures</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Autonomie de la ressource</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation des insectes volants</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001111221223</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des familles cultivees</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>IFT Insecticides</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>nulle</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la macrofaune du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0001001111111122011111111122122211121122223322331122222222332333</LOW>
+ <WEIGHTS>38;32;20</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet du travail du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des apports de matieres organiques</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>IFT Insecticides</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>nulle</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Diversite floristique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000011000111122111112223122223233222233333</LOW>
+ <WEIGHTS>50;35;14</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des periodes d implantation</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Utilisation d herbicides a spectre large</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>Nulle</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Gestion des bords de champs</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation des micro-organismes du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000001011001011112122112122222233222223233333</LOW>
+ <WEIGHTS>50;25;25</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <ATTRIBUTE>
+ <NAME>Effet des apports de matieres organiques</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des pesticides</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>nul</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des familles cultivees</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+</DEXi>
\ No newline at end of file
Added: masc/masc-api/src/test/resources/dxi/dexi2.0.dxi
===================================================================
--- masc/masc-api/src/test/resources/dxi/dexi2.0.dxi (rev 0)
+++ masc/masc-api/src/test/resources/dxi/dexi2.0.dxi 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,3180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<DEXi>
+ <NAME>MASC 2.0</NAME>
+ <DESCRIPTION>
+ <LINE>Le modele MASC 2.0 a ete conçu pour faciliter l evaluation multicritere de la contribution des systemes de grandes cultures au developpement durable. Il peut etre utilise dans le cadre de diverses etudes a caractere exploratoire pour effectuer notamment :</LINE>
+ <LINE/>
+ <LINE>- de l analyse des performances globales des systemes de culture ou d une comparaison des performances de plusieurs systemes existants dans un territoire (evaluation ex post)</LINE>
+ <LINE/>
+ <LINE>- des études de nouveaux systèmes de culture en comparaison (ou non) avec des systemes existants construits dans le cadre d'une conception par prototypage suivi d'une evaluation ex ante.</LINE>
+ <LINE/>
+ <LINE>Il s agit de confronter les performances elementaires du systeme de culture a un jeu de preferences afin d'obtenir une note globale de durabilite puis eventuellement de fournir un classement comparatif et argumente de plusieurs systemes de cultures evalues avec un meme profil de preferences.</LINE>
+ <LINE/>
+ <LINE>Le modele MASC 2.0 derive du modele MASC V1.0 (Sadok et al., 2009). Il a ete developpe dans le cadre du projet GIS HPEE, en tenant compte de l'experience acquise par les utilisateurs de la version 1.0 de l'outil. Il fait l'objet des documents d'accompagnement suivants :</LINE>
+ <LINE/>
+ <LINE>Craheix D., Angevin F., Bergez J.-E., Bockstaller C., Colomb B., Guichard L., Reau R., Sadok W., Doré T (2011). MASC 2.0, Un outil pour l analyse de la contribution des systèmes de culture au developpement durable. Jeu complet de fiches criteres de MASC 2.0. INRA - AgroParisTech - GIS GC HP2E, 133 p.</LINE>
+ <LINE/>
+ <LINE>Craheix D., Angevin F., Bergez J.-E., Bockstaller C., Colomb B., Guichard L., Reau R., Sadok W., Doré T (2011). MASC 2.0, Un outil pour l'analyse de la contribution des systemes de culture au developpement durable. Presentation & principes d utilisation. INRA - AgroParisTech - GIS GC HP2E, 54 p.</LINE>
+ <LINE/>
+ <LINE>Le modele d evaluation qualitative etabli avec le present outil DEXi 3.03 repose sur la definition de fonctions d utilite qui realisent les agregations des criteres d evaluation a partir de regles de raisonnement qualitatif. Ces regles determinent la ponderation des critères dans le processus d'agregation, pour parvenir au diagnostic de leur contribution au developpement durable. Les regles incorporees actuellement dans l'outil et les ponderations qui en decoulent ne doivent pas être considerees comme normatives. Elles ont ete etablies a titre d'exemple et doivent être reconsiderees par les utilisateurs, en fonction des specificites du projet d'evaluation et des preoccupations associees aux systemes de culture a evaluer. </LINE>
+ <LINE/>
+ <LINE>Le choix des modes de calcul ou d'evaluation par expertise dirigee des indicateurs basiques est sous l entiere responsabilite de l utilisateur ou du collectif d utilisation. Aucun choix normatif concernant ces modes n'est associe à la presente version du modele MASC 2.0.</LINE>
+ </DESCRIPTION>
+ <OPTION>ACTUEL</OPTION>
+ <OPTION>Pest -</OPTION>
+ <SETTINGS>
+ <LINKING>True</LINKING>
+ <PAGEBREAK>True</PAGEBREAK>
+ <EVALTRIM>10</EVALTRIM>
+ <FONTSIZE>8</FONTSIZE>
+ <FONTNAME>Courier New</FONTNAME>
+ </SETTINGS>
+ <ATTRIBUTE>
+ <NAME>Contribution au developpement durable</NAME>
+ <DESCRIPTION>CDDUR Contribution du SDC au developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>assez faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>assez elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>00000000110011201123012330001100112012231123412345001120122312334123452345601123122341234523456345660123312345234563456635666</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>4</OPTION>
+ <ATTRIBUTE>
+ <NAME>Dimension economique</NAME>
+ <DESCRIPTION>CDECO Contribution du SDC a la dimension economique du developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0001001101121123001101121123123301121123123423441123123423443444</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Resultats economiques</NAME>
+ <DESCRIPTION>RES Resultats economiques du SDC pour l agriculteur</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000000111000111122222111122223233112222333333</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Rentabilite</NAME>
+ <DESCRIPTION>MSN Rentabilite a court terme du SDC calculee avec la marge semi-nette</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Autonomie economique</NAME>
+ <DESCRIPTION>AUTECO Autonomie du SDC vis a vis des aides publiques et des intrants</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Independance economique</NAME>
+ <DESCRIPTION>IND Independance economique vis-a-vis dess aides incluses dans la marge semi-nette</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Efficience economique</NAME>
+ <DESCRIPTION>EFF Efficience economique vis-a-vis des intrants comptabilises dans la marge semi-nette</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Surcout en materiel</NAME>
+ <DESCRIPTION>MAT Surcout en investissements lies au materiel supplementaire specifique au SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Capacite productive a long terme</NAME>
+ <DESCRIPTION>CPLT Evolution de la capacite productive des parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite physico-chimique</NAME>
+ <DESCRIPTION>MFPC Evolution de la fertilite physico-chimique dans les parcelles soumises au SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise du statut acido-basique du sol</NAME>
+ <DESCRIPTION>MSAB Evolution du statut acido-basique du sol dans les parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l etat structural du sol</NAME>
+ <DESCRIPTION>MES Evolution de la structure du sol dans les parcelles soumises au SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite phosphopotassique</NAME>
+ <DESCRIPTION>MFPP Evolution de la fertilite phospho-potassique des parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des bioagresseurs</NAME>
+ <DESCRIPTION>MBAGR Evolution de la pression des bioagresseurs dans les parcelles soumises au SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des maladies et ravageurs</NAME>
+ <DESCRIPTION>MMR Evolution de la pression de maladies et de ravageurs telluriques </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des adventices</NAME>
+ <DESCRIPTION>MADV Evolution de la pression des adventices </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Contribution au developpement economique</NAME>
+ <DESCRIPTION>CDEV Contribution du SDC au developpement economique des filieres et du territoire</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000112223333</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Qualite des produits</NAME>
+ <DESCRIPTION>QP Risque de non atteinte de niveau de qualite des recoltes exige par les filieres</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000112233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Qualite sanitaire</NAME>
+ <DESCRIPTION>QS Risque de non atteinte de niveau de qualite sanitaire exige par les filieres</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Qualite technonologique et esthetique des produits</NAME>
+ <DESCRIPTION>QTEP Risque de non atteinte du niveau de qualite technologique/esthetique exige</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Contribution a l emergence de filieres</NAME>
+ <DESCRIPTION>CENF Contribution a l emergence de nouvelles filieres</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>nulle</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>Moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dimension sociale</NAME>
+ <DESCRIPTION>CDSOC Contribution du SDC a la dimension sociale du developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0012012312342344</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Satisfaction des attentes de la societe</NAME>
+ <DESCRIPTION>SATISS Compatibilite du SDC avec les attentes supposees de la societe</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Contribution a l emploi</NAME>
+ <DESCRIPTION>EMP Contribution du SDC a l insertion sociale et au developpement local par les emplois </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Fourniture de matieres premieres</NAME>
+ <DESCRIPTION>FMP Contribution du SDC a satisfaire les besoins de la societe en produits agricoles</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Satisfaction des attentes de l agriculteur</NAME>
+ <DESCRIPTION>SATISA Compatibilite du SDC avec les attentes sociales de l agriculteur</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Facilite de mise en oeuvre</NAME>
+ <DESCRIPTION>FMO Appreciation qualitative des difficultes techniques liees a la realisation du SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000112123333</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Complexite des itineraires techniques</NAME>
+ <DESCRIPTION>CIT Complexite des interventions culturales induites par le SDC </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Temps de veille technico-economique</NAME>
+ <DESCRIPTION>TVTE Difficulte de mise en oeuvre d un SDC compose de cultures differentes</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Qualite des conditions de travail</NAME>
+ <DESCRIPTION>QCT Impact du SDC sur les conditions de travail de l agriculteur ou des ouvriers</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000011012000012023000023033</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Surcharge de travail</NAME>
+ <DESCRIPTION>SDT Contribution du SDC a la surcharge de travail en periode de pointe</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Risque pour la sante de l applicateur</NAME>
+ <DESCRIPTION>TOX Risque d intoxication du travailleur lors de la manipulation des produits phytosanitaires</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <DESCRIPTION>> 2</DESCRIPTION>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ <DESCRIPTION>1 < Tox < ou = 2</DESCRIPTION>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <DESCRIPTION>0 < Tox < ou = 1</DESCRIPTION>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Difficulte physique</NAME>
+ <DESCRIPTION>DIFF Niveau de penibilite physique associe a la conduite des operations culturales du SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dimension environnementale</NAME>
+ <DESCRIPTION>CDENV Contribution du SDC a la dimension environnementale du developpement durable</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0001001101121123001101121123123301121123123423441123123423443444</LOW>
+ <WEIGHTS>33;33;33</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Contribution a la qualite du milieu</NAME>
+ <DESCRIPTION>CQM Contribution du SDC a preserver les composantes air-eau-sol du milieu</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Contribution a la qualite de l eau</NAME>
+ <DESCRIPTION>CQE Contribution du SDC a preserver la qualite de l eau</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de pesticides Eaux</NAME>
+ <DESCRIPTION>MPPE Risque de pollution des eaux profondes et superficielles par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise pertes dans les eaux profondes</NAME>
+ <DESCRIPTION>MPEP Risque de pollution des eaux profondes par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise pertes dans les eaux superficielles</NAME>
+ <DESCRIPTION>MPES Risque de pollution des eaux superficielles par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de NO3</NAME>
+ <DESCRIPTION>MPNO3 Risque de pollution des eaux induit par les nitrates</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de P</NAME>
+ <DESCRIPTION>MPPH Risque de pollution des eaux induit par le phosphore</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Contribution a la qualite air</NAME>
+ <DESCRIPTION>CQA Contribution du SDC a preserver la qualite de l air</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000000100110112000000110112112300010112112312330011012212332333</LOW>
+ <WEIGHTS>30;40;30</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des emissions de NH3</NAME>
+ <DESCRIPTION>MNH3 Risque de pertes d ammoniac par volatilisation </DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des emissions de N2O</NAME>
+ <DESCRIPTION>MN2O Risque de pertes de protoxyde d azote dans l air</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des emissions de pesticides Air</NAME>
+ <DESCRIPTION>MPA Risque de pollution atmospherique par les pesticides</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Preservation de la qualite du sol</NAME>
+ <DESCRIPTION>PQS Contribution du SDC a preserver la qualite du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000000000000000000000110111011200110111012301330011011201330233</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l accumulation d elements toxiques</NAME>
+ <DESCRIPTION>MAET Maitrise a long terme de l accumulation d elements toxiques dans le sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise du statut organique</NAME>
+ <DESCRIPTION>MSO Maitrise de la teneur en matiere organique du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l erosion</NAME>
+ <DESCRIPTION>MERO Maitrise du risque d erosion du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pression sur les ressources abiotiques</NAME>
+ <DESCRIPTION>PSRA Pression exercee par le SDC sur les ressources abiotiques</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101110112001101121122122301111122122312330112122312332333</LOW>
+ <WEIGHTS>33;33;33</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Pression Eau</NAME>
+ <DESCRIPTION>PSEAU Pression exercee par le SDC sur la disponibilite locale en eau douce</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001112233</LOW>
+ <WEIGHTS>70;30</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Conso. en eau d irrigation en periode critique</NAME>
+ <DESCRIPTION>IRRC Consommation d eau d irrigation en periodes critiques (secheresse/etiage)</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dependance vis a vis de la ressource en eau</NAME>
+ <DESCRIPTION>DPEAU Autonomie du SDC vis-a-vis de la ressource en eau</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pression Energie</NAME>
+ <DESCRIPTION>PSEN Impact du SDC sur la durabilite des ressources energetiques</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>011122123</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Consommation en energie</NAME>
+ <DESCRIPTION>CEN Consommation brute en energie fossile associee a la conduite du SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <DESCRIPTION><4</DESCRIPTION>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ <DESCRIPTION>[4-7[</DESCRIPTION>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <DESCRIPTION>>=7</DESCRIPTION>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Efficience energetique</NAME>
+ <DESCRIPTION>EEN Rapport d efficience entre lenergie produite et energie consommee par le SDC</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pression Phosphore</NAME>
+ <DESCRIPTION>PSPH Pression exerce par leSDC sur les ressources biogeochimiques en phosphore</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la biodiversite</NAME>
+ <DESCRIPTION>CBIODI Contribution du SDC a preserver la biodiversite peu mobile</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000000101121122000000111122122300000122122322330000112222332333</LOW>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Conservation de la macrofaune</NAME>
+ <DESCRIPTION>CMF Contribution du SDC a preserver l abondance et la diversite de la macrofaune</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012201230233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Conservation des insectes volants</NAME>
+ <DESCRIPTION>CMIV Contribution du SDC a preserver l abondance et la diversite des insectes volants</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la macrofaune du sol</NAME>
+ <DESCRIPTION>CMS Contribution du SDC a preserver l abondance et la diversite de la macrofaune du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la flore</NAME>
+ <DESCRIPTION>CFLO Contribution du SDC a preserver l abondance et la diversite floristique</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011012212231233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Abondance floristique</NAME>
+ <DESCRIPTION>ABOF Contribution du SDC a preserver l abondance floristique</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>3210</LOW>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>0</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise des adventices</NAME>
+ <DESCRIPTION>MADV Pression sur la flore adventice (inverse du critere maitrise des adventices)</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Diversite floristique</NAME>
+ <DESCRIPTION>DF Contribution du SDC a preserver la diversite floristique dans les parcelles</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation des micro-organismes du sol</NAME>
+ <DESCRIPTION>CMOS Contribution du SDC a preserver l abondance et la diversite des microorganismes du sol</DESCRIPTION>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise du statut acido-basique du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001100220012012201220133222202232233</LOW>
+ <ENTERED>++++++++++++++++++++++++++--+---+---</ENTERED>
+ <WEIGHTS>33.3333333333333;33.3333333333333;33.3333333333333</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Statut acido-basique initial</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>CEC (Pouvoir tampon du sol)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Impact du SDC</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0012012212222223</LOW>
+ <ENTERED>+--------------+</ENTERED>
+ <WEIGHTS>50;50</WEIGHTS>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet des pratiques acidifiantes</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des amendements basiques</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l etat structural du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0011001212332233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Degradation de la structure du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>01122323</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Proportion de cultures recoltees en mauvaises conditions</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des equipements limitant le tassement</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Regeneration de la structure du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0012012211132233</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Aptitude du sol a la fissuration</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Regeneration mecanique de la structure</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite phosphopotassique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0000001101230133</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertitilite phosphorique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000111221001222333001233333</LOW>
+ <WEIGHTS>60;29;20</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Etat de fertilite initiale P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Bilan et recyclage interne de P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001001111122222</LOW>
+ <WEIGHTS>62;39</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Bilan annuel moyen de P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Recyclage du P par les residus de recolte</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pouvoir tampon du sol P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de la fertilite potassique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000111221001222333001233333</LOW>
+ <WEIGHTS>28;63;6</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Etat de la fertilite initiale de K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Bilan et recyclage interne de K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000001112122222</LOW>
+ <WEIGHTS>60.3960396039604;39.6039603960396</WEIGHTS>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Bilan annuel moyen de K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Recyclage du K par les residus de recolte</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Pouvoir tampon du sol K</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des maladies et ravageurs</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000011111011111112122111122233233</LOW>
+ <WEIGHTS>50;30;20</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des familles cultivees</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du travail du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des methodes de lutte (maladies et ravageurs)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des adventices</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001011012112122122122223223223</LOW>
+ <WEIGHTS>38.4615384615385;38.4615384615385;23.0769230769231</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des periodes d implantation</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>4</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du labour</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des methodes de lutte (adventices)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise des pertes de P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000000001000011111111011112223233112222233333</LOW>
+ <WEIGHTS>55;30;15</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Gestion des amendements</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>011122223</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Quantite de P apportee en moyenne</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Methode d incorporaton des amendements P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l erosion</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Teneur en P du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>210</LOW>
+ <WEIGHTS>100</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Etat de fertilite initiale P</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l erosion</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>00110012112312332333</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Sensibilite du milieu</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres forte</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>forte</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>4</OPTION>
+ <OPTION>4</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du SDC</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>defavorable</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres favorable</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000111111112211221122222222333322223322332333</LOW>
+ <WEIGHTS>55;35;10</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>3</OPTION>
+ <ATTRIBUTE>
+ <NAME>Defauts de couverture du sol en periodes a risque (erosion)</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet du travail du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Maitrise de l etat structural du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Dependance vis a vis de la ressource en eau</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001101121122</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>2</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Demande en eau des cultures</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Autonomie de la ressource</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>3</OPTION>
+ <OPTION>3</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation des insectes volants</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>001111221223</LOW>
+ <WEIGHTS>50;50</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des familles cultivees</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>IFT Insecticides</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>nulle</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation de la macrofaune du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>0001001111111122011111111122122211121122223322331122222222332333</LOW>
+ <WEIGHTS>38;32;20</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet du travail du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen a eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyen</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des apports de matieres organiques</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>IFT Insecticides</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>nulle</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Diversite floristique</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000011000111122111112223122223233222233333</LOW>
+ <WEIGHTS>50;35;14</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des periodes d implantation</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>4</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Utilisation d herbicides a spectre large</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>Nulle</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Gestion des bords de champs</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>0</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Conservation des micro-organismes du sol</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <FUNCTION>
+ <LOW>000000001011001011112122112122222233222223233333</LOW>
+ <WEIGHTS>50;25;25</WEIGHTS>
+ <CONSIST>False</CONSIST>
+ </FUNCTION>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ <ATTRIBUTE>
+ <NAME>Effet des apports de matieres organiques</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>tres faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible a moyenne</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyenne a elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>tres elevee</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>1</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet des pesticides</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>nul</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>0</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ <ATTRIBUTE>
+ <NAME>Effet de la diversite des familles cultivees</NAME>
+ <SCALE>
+ <SCALEVALUE>
+ <NAME>faible</NAME>
+ <GROUP>BAD</GROUP>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>moyen</NAME>
+ </SCALEVALUE>
+ <SCALEVALUE>
+ <NAME>eleve</NAME>
+ <GROUP>GOOD</GROUP>
+ </SCALEVALUE>
+ </SCALE>
+ <OPTION>1</OPTION>
+ <OPTION>2</OPTION>
+ </ATTRIBUTE>
+ </ATTRIBUTE>
+</DEXi>
\ No newline at end of file
Added: masc/masc-api/src/test/resources/log4j.properties
===================================================================
--- masc/masc-api/src/test/resources/log4j.properties (rev 0)
+++ masc/masc-api/src/test/resources/log4j.properties 2011-12-09 18:13:06 UTC (rev 515)
@@ -0,0 +1,9 @@
+# Global logging configuration
+log4j.rootLogger=ERROR, stdout
+# Console output...
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %5p [%t] (%F:%L) %M - %m%n
+
+# package level
+log4j.logger.fr.inra.masc=INFO
1
0
r514 - in masc/masc-ui: . src/main/java/fr/inra/mask src/main/java/fr/inra/mask/ui
by sletellier@users.nuiton.org 09 Dec '11
by sletellier@users.nuiton.org 09 Dec '11
09 Dec '11
Author: sletellier
Date: 2011-12-09 19:10:32 +0100 (Fri, 09 Dec 2011)
New Revision: 514
Url: http://nuiton.org/repositories/revision/sandbox/514
Log:
- Creation of masc main ui
Added:
masc/masc-ui/src/main/java/fr/inra/mask/MascApplicationContext.java
masc/masc-ui/src/main/java/fr/inra/mask/RunMasc.java
masc/masc-ui/src/main/java/fr/inra/mask/ui/
masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUI.jaxx
masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUIHandler.java
Modified:
masc/masc-ui/pom.xml
Modified: masc/masc-ui/pom.xml
===================================================================
--- masc/masc-ui/pom.xml 2011-12-08 16:04:32 UTC (rev 513)
+++ masc/masc-ui/pom.xml 2011-12-09 18:10:32 UTC (rev 514)
@@ -18,6 +18,34 @@
<dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>masc-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- jaxx dependencies -->
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-validator</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-widgets</artifactId>
+ </dependency>
+
+ <!-- logging dependencies -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </dependency>
+
</dependencies>
<!-- ************************************************************* -->
Added: masc/masc-ui/src/main/java/fr/inra/mask/MascApplicationContext.java
===================================================================
--- masc/masc-ui/src/main/java/fr/inra/mask/MascApplicationContext.java (rev 0)
+++ masc/masc-ui/src/main/java/fr/inra/mask/MascApplicationContext.java 2011-12-09 18:10:32 UTC (rev 514)
@@ -0,0 +1,46 @@
+package fr.inra.mask;
+
+import fr.inra.masc.MascConfig;
+import fr.inra.masc.model.MascModel;
+
+/**
+ * Context of masc application
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascApplicationContext {
+
+ protected static ThreadLocal<MascApplicationContext> threadLocal;
+
+ protected MascConfig config;
+ protected MascModel mascModel;
+
+ public static MascApplicationContext getContext() {
+ if (threadLocal == null) {
+ threadLocal = new ThreadLocal<MascApplicationContext>();
+ threadLocal.set(new MascApplicationContext());
+ }
+ return threadLocal.get();
+ }
+
+ // use singleton
+ protected MascApplicationContext() {
+ }
+
+ public MascModel getMascModel() {
+ return mascModel;
+ }
+
+ public void setMascModel(MascModel mascModel) {
+ this.mascModel = mascModel;
+ }
+
+ public MascConfig getConfig() {
+ return config;
+ }
+
+ public void setConfig(MascConfig config) {
+ this.config = config;
+ }
+}
Added: masc/masc-ui/src/main/java/fr/inra/mask/RunMasc.java
===================================================================
--- masc/masc-ui/src/main/java/fr/inra/mask/RunMasc.java (rev 0)
+++ masc/masc-ui/src/main/java/fr/inra/mask/RunMasc.java 2011-12-09 18:10:32 UTC (rev 514)
@@ -0,0 +1,34 @@
+package fr.inra.mask;
+
+import fr.inra.mask.ui.MascMainUI;
+import fr.inra.mask.ui.MascMainUIHandler;
+import jaxx.runtime.context.JAXXInitialContext;
+import jaxx.runtime.swing.ErrorDialogUI;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class RunMasc {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(RunMasc.class);
+
+ public static void main(String[] args) {
+
+ try {
+ MascApplicationContext applicationContext = MascApplicationContext.getContext();
+ JAXXInitialContext jaxxContext = new JAXXInitialContext();
+ jaxxContext.add(applicationContext);
+
+ MascMainUIHandler mainHandler = new MascMainUIHandler();
+ MascMainUI mainUI = mainHandler.initUI(jaxxContext);
+ } catch (Exception eee) {
+ log.error(eee.getMessage(), eee);
+ ErrorDialogUI.showError(eee);
+ System.exit(1);
+ }
+ }
+}
Added: masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUI.jaxx
===================================================================
--- masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUI.jaxx (rev 0)
+++ masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUI.jaxx 2011-12-09 18:10:32 UTC (rev 514)
@@ -0,0 +1,7 @@
+<JFrame id='mainFrame' decorator='help'
+ width='800' height='800'
+ onWindowClosing='getHandler().closeApplication(this)'>
+
+ <MascMainUIHandler id="handler"
+ initializer='getContextValue(MascMainUIHandler.class)'/>
+</JFrame>
\ No newline at end of file
Added: masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUIHandler.java
===================================================================
--- masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUIHandler.java (rev 0)
+++ masc/masc-ui/src/main/java/fr/inra/mask/ui/MascMainUIHandler.java 2011-12-09 18:10:32 UTC (rev 514)
@@ -0,0 +1,34 @@
+package fr.inra.mask.ui;
+
+import jaxx.runtime.context.JAXXInitialContext;
+import jaxx.runtime.swing.ErrorDialogUI;
+
+/**
+ * Handler of main UI
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascMainUIHandler {
+
+ public void closeApplication(MascMainUI ui) {
+ ui.dispose();
+ }
+
+ public MascMainUI initUI(JAXXInitialContext context) {
+
+ // share handler
+ context.add(this);
+
+ // construt main UI
+ MascMainUI ui = new MascMainUI(context);
+
+ // display
+ ui.setVisible(true);
+
+ // synch to error dialog
+ ErrorDialogUI.init(ui);
+
+ return ui;
+ }
+}
1
0
Author: athimel
Date: 2011-12-08 17:04:32 +0100 (Thu, 08 Dec 2011)
New Revision: 513
Url: http://nuiton.org/repositories/revision/sandbox/513
Log:
Remove src
Removed:
jforum-2.3.3/src/
1
0
Author: athimel
Date: 2011-12-08 17:03:42 +0100 (Thu, 08 Dec 2011)
New Revision: 512
Url: http://nuiton.org/repositories/revision/sandbox/512
Log:
Prepare jForum 2.3.3 integration
Added:
jforum-2.3.3/pom.xml
jforum-2.3.3/src/
Added: jforum-2.3.3/pom.xml
===================================================================
--- jforum-2.3.3/pom.xml (rev 0)
+++ jforum-2.3.3/pom.xml 2011-12-08 16:03:42 UTC (rev 512)
@@ -0,0 +1,293 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.jforum</groupId>
+ <artifactId>jforum</artifactId>
+ <version>2.3.3</version>
+ <packaging>war</packaging>
+ <name>JForum</name>
+ <description>JForum is a powerful and robust discussion board system implemented in Javatm. It provides an attractive interface, an efficient forum engine, an easy to use administrative panel, an advanced permission control system and much more. </description>
+ <url>http://jforum2.googlecode.com</url>
+ <issueManagement>
+ <system>Google Code</system>
+ <url>http://code.google.com/p/jforum2/issues/list</url>
+ </issueManagement>
+ <scm>
+ <connection>svn</connection>
+ <url>http://jforum2.googlecode.com/svn/</url>
+ </scm>
+ <repositories>
+ <repository>
+ <id>jboss</id>
+ <name>jboss public</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ </repository>
+ <repository>
+ <id>jahia</id>
+ <name>jahia</name>
+ <url>http://maven.jahia.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>mule-deps</id>
+ <name>mule-deps</name>
+ <url>http://dist.codehaus.org/mule/dependencies/maven2/</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1.1</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ <version>1.4.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.5</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-lang3</artifactId>
+ <version>3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.freemarker</groupId>
+ <artifactId>freemarker</artifactId>
+ <version>2.3.18</version>
+ </dependency>
+ <dependency>
+ <groupId>org.htmlparser</groupId>
+ <artifactId>htmlparser</artifactId>
+ <version>1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analyzers</artifactId>
+ <version>3.5.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-highlighter</artifactId>
+ <version>3.5.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.beanshell</groupId>
+ <artifactId>bsh</artifactId>
+ <version>2.0b4</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>c3p0</groupId>
+ <artifactId>c3p0</artifactId>
+ <version>0.9.1.2</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.1.18</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>2.2.6</version>
+ </dependency>
+ <dependency>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>9.0-801.jdbc3</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.quartz-scheduler</groupId>
+ <artifactId>quartz</artifactId>
+ <version>2.1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.cache</groupId>
+ <artifactId>jbosscache-core</artifactId>
+ <version>3.2.5.GA</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>jgroups</artifactId>
+ <groupId>jgroups</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.ehcache</groupId>
+ <artifactId>ehcache-core</artifactId>
+ <version>2.4.6</version>
+ </dependency>
+ <dependency>
+ <groupId>com.octo.captcha</groupId>
+ <artifactId>jcaptcha</artifactId>
+ <version>1.0</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.6.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.6.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2.1</version>
+ <type>jar</type>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4.0</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jgroups</groupId>
+ <artifactId>jgroups</artifactId>
+ <version>2.12.2.Final</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.ehcache</groupId>
+ <artifactId>ehcache-jgroupsreplication</artifactId>
+ <version>1.4</version>
+ <type>jar</type>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jdom</groupId>
+ <artifactId>jdom</artifactId>
+ <version>1.1.1</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>jforum</finalName>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>templates/*</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1.1</version>
+ <configuration>
+ <archiveClasses>true</archiveClasses>
+ <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
+ <webResources>
+ <resource>
+ <directory>.</directory>
+ <includes>
+ <include>license.txt</include>
+ </includes>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>copy-config</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/config</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/config</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-templates</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/templates</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources/templates</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-upgrade</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}/upgrade</outputDirectory>
+ <resources>
+ <resource>
+ <directory>upgrade</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+</project>
\ No newline at end of file
1
0
Author: athimel
Date: 2011-12-08 17:02:16 +0100 (Thu, 08 Dec 2011)
New Revision: 511
Url: http://nuiton.org/repositories/revision/sandbox/511
Log:
Prepare jForum 2.3.3 integration
Added:
jforum-2.3.3/
1
0
r510 - in masc: . masc-api masc-api/src/main/java/fr/inra/masc masc-api/src/main/java/fr/inra/masc/services
by sletellier@users.nuiton.org 07 Dec '11
by sletellier@users.nuiton.org 07 Dec '11
07 Dec '11
Author: sletellier
Date: 2011-12-07 12:01:38 +0100 (Wed, 07 Dec 2011)
New Revision: 510
Url: http://nuiton.org/repositories/revision/sandbox/510
Log:
- Creating masc config
- Initialize services
Added:
masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java
masc/masc-api/src/main/java/fr/inra/masc/MascTechnicalException.java
masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java
masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java
masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java
masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java
masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java
masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceContext.java
masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceFactory.java
masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java
masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java
masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java
Removed:
masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java
Modified:
masc/masc-api/pom.xml
masc/pom.xml
Modified: masc/masc-api/pom.xml
===================================================================
--- masc/masc-api/pom.xml 2011-12-01 09:04:18 UTC (rev 509)
+++ masc/masc-api/pom.xml 2011-12-07 11:01:38 UTC (rev 510)
@@ -24,6 +24,23 @@
<description>Masc - API module</description>
<dependencies>
+
+ <!-- nuiton dependencies -->
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </dependency>
+
</dependencies>
<!-- ************************************************************* -->
Added: masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/MascConfig.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,211 @@
+package fr.inra.masc;
+
+import com.google.common.base.Preconditions;
+import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.nuiton.util.*;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+import java.util.Properties;
+
+/**
+ * Masc configuration.
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascConfig {
+
+ /** Logger. */
+ protected static final Log log =
+ LogFactory.getLog(MascConfig.class);
+
+ /** Delegate application config object containing configuration. */
+ protected ApplicationConfig applicationConfig;
+
+ public MascConfig() {
+ this("masc.properties");
+ }
+
+ public MascConfig(String file) {
+
+ applicationConfig = new ApplicationConfig();
+ applicationConfig.setConfigFileName(file);
+
+ if (log.isInfoEnabled()) {
+ log.info(this + " is initializing...");
+ }
+ try {
+ applicationConfig.loadDefaultOptions(MascConfigOption.class);
+ applicationConfig.parse();
+ } catch (ArgumentsParserException e) {
+ throw new MascTechnicalException(
+ "Could not parse configuration", e);
+ }
+
+ if (log.isDebugEnabled()) {
+ log.debug("parsed options in config file" + applicationConfig.getOptions());
+ }
+ }
+
+ @Override
+ public String toString() {
+ return ReflectionToStringBuilder.toString(this);
+ }
+
+ public Properties getProperties() {
+ Properties result = applicationConfig.getFlatOptions();
+ return result;
+ }
+
+ public Version getApplicationVersion() {
+ String versionStr = applicationConfig.getOption(MascConfigOption.VERSION.key);
+ String s = VersionUtil.removeSnapshot(versionStr);
+ Version v = VersionUtil.valueOf(s);
+ Preconditions.checkNotNull(v);
+ return v;
+ }
+
+ public URL getApplicationSite() {
+ URL url = applicationConfig.getOptionAsURL(MascConfigOption.SITE_URL.key);
+ Preconditions.checkNotNull(url);
+ return url;
+ }
+
+ public String getDexiPath() {
+ String dexyPath = applicationConfig.getOption(MascConfigOption.DEXI_APP_PATH.key);
+ Preconditions.checkNotNull(dexyPath);
+ return dexyPath;
+ }
+
+ public String getDexiEvalPath() {
+ String dexyEvalPath = applicationConfig.getOption(MascConfigOption.DEXI_EVAL_APP_PATH.key);
+ Preconditions.checkNotNull(dexyEvalPath);
+ return dexyEvalPath;
+ }
+
+ public boolean getOptionAsBoolean(String propertyName) {
+ Boolean result = applicationConfig.getOptionAsBoolean(propertyName);
+ return result != null && result;
+ }
+
+ /**
+ * Creates a directory given the configuration given key.
+ *
+ * @param key the configuration option key which contains the location of
+ * the directory to create
+ */
+ protected void createDirectory(MascConfigOption key) {
+
+ File directory = applicationConfig.getOptionAsFile(key.getKey());
+
+ Preconditions.checkNotNull(
+ directory,
+ "Could not find directory " + directory + " (key " +
+ key +
+ "in your configuration file named echobase.properties)"
+ );
+ if (log.isInfoEnabled()) {
+ log.info(key + " = " + directory);
+ }
+ try {
+ FileUtil.createDirectoryIfNecessary(directory);
+ } catch (IOException e) {
+ throw new MascTechnicalException(
+ "Could not create directory " + directory, e);
+ }
+ }
+
+ /**
+ * All Masc configuration options.
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+ public enum MascConfigOption implements ApplicationConfig.OptionDef {
+
+ /** Main directory where to put echobase data (logs, and others...). */
+ VERSION("project.version",
+ "Version de l'application",
+ "", Version.class),
+ SITE_URL("project.siteUrl",
+ "URL du site de l'application",
+ "", URL.class),
+ DEXI_APP_PATH("masc.dexi.path",
+ "Chemin de l'application masc",
+ "", String.class),
+ DEXI_EVAL_APP_PATH("masc.dexiEval.path",
+ "Chemin de l'application masc eval",
+ "", String.class);
+
+ /** Configuration key. */
+ protected final String key;
+
+ /** I18n key of option description */
+ protected final String description;
+
+ /** Type of option */
+ protected final Class<?> type;
+
+ /** Default value of option. */
+ protected String defaultValue;
+
+ MascConfigOption(String key,
+ String description,
+ String defaultValue,
+ Class<?> type) {
+ this.key = key;
+ this.description = description;
+ this.defaultValue = defaultValue;
+ this.type = type;
+ }
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ @Override
+ public Class<?> getType() {
+ return type;
+ }
+
+ @Override
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ @Override
+ public boolean isTransient() {
+ return true;
+ }
+
+ @Override
+ public boolean isFinal() {
+ return true;
+ }
+
+ @Override
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ @Override
+ public void setTransient(boolean newValue) {
+ // not used
+ }
+
+ @Override
+ public void setFinal(boolean newValue) {
+ // not used
+ }
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/MascTechnicalException.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/MascTechnicalException.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/MascTechnicalException.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,25 @@
+package fr.inra.masc;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascTechnicalException extends RuntimeException {
+
+ private static final long serialVersionUID = 1L;
+
+ public MascTechnicalException() {
+ }
+
+ public MascTechnicalException(String message) {
+ super(message);
+ }
+
+ public MascTechnicalException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public MascTechnicalException(Throwable cause) {
+ super(cause);
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/DexiEvalInvokerService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,8 @@
+package fr.inra.masc.services;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ */
+public class DexiEvalInvokerService extends MascService {
+
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/DexiInvokerService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,8 @@
+package fr.inra.masc.services;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class DexiInvokerService extends MascService {
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/ImageGeneratorService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,8 @@
+package fr.inra.masc.services;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ImageGeneratorService extends MascService {
+}
Deleted: masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java 2011-12-01 09:04:18 UTC (rev 509)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -1,16 +0,0 @@
-package fr.inra.masc.services;
-
-import fr.inra.masc.model.MascModel;
-
-import java.io.File;
-
-/**
- * @author sletellier <letellier(a)codelutin.com>
- * @since 0.1
- */
-public class ImportService {
-
- public MascModel importMascFile(File mascFile) {
- return null;
- }
-}
Copied: masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java (from rev 509, masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java)
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/LoadModelService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,17 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.model.MascModel;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class LoadModelService extends MascService {
+
+ public MascModel loadModel(File mascFile) {
+ // TODO
+ return null;
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MascService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,24 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.MascConfig;
+
+/**
+ * Contract to place on each Masc service to push the {@code serviceContext}
+ * inside the service.
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @see MascServiceContext
+ * @since 0.1
+ */
+public abstract class MascService {
+
+ protected MascServiceContext serviceContext;
+
+ public void setServiceContext(MascServiceContext serviceContext) {
+ this.serviceContext = serviceContext;
+ }
+
+ public MascConfig getConfig() {
+ return serviceContext.getConfig();
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceContext.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceContext.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceContext.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,36 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.MascConfig;
+
+/**
+ * This contract represents objects you must provide when asking for a service.
+ * Objects provided may be injected in services returned by
+ * {@link MascServiceFactory#newService(Class, MascServiceContext)}
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascServiceContext {
+
+ protected MascConfig config;
+
+ protected MascServiceFactory serviceFactory;
+
+ public MascServiceContext(MascConfig config, MascServiceFactory serviceFactory) {
+ this.config = config;
+ this.serviceFactory = serviceFactory;
+ }
+
+ public MascConfig getConfig() {
+ return config;
+ }
+
+ public MascServiceFactory getServiceFactory() {
+ return serviceFactory;
+ }
+
+ public <E extends MascService> E newService(Class<E> clazz) {
+ return serviceFactory.newService(clazz, this);
+ }
+
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceFactory.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceFactory.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/MascServiceFactory.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,34 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.MascTechnicalException;
+
+import java.lang.reflect.InvocationTargetException;
+
+/**
+ * Factory of services.
+ *
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascServiceFactory {
+
+ public <E extends MascService> E newService(Class<E> clazz, MascServiceContext serviceContext) {
+ // instantiate service using empty constructor
+ E service;
+ try {
+ service = clazz.getConstructor().newInstance();
+ } catch (InstantiationException e) {
+ throw new MascTechnicalException(e);
+ } catch (IllegalAccessException e) {
+ throw new MascTechnicalException(e);
+ } catch (InvocationTargetException e) {
+ throw new MascTechnicalException(e);
+ } catch (NoSuchMethodException e) {
+ throw new MascTechnicalException(e);
+ }
+
+ service.setServiceContext(serviceContext);
+
+ return service;
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/OptionCRUDService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,8 @@
+package fr.inra.masc.services;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class OptionCRUDService extends MascService {
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/ReportGeneratorService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,8 @@
+package fr.inra.masc.services;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ReportGeneratorService extends MascService {
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/SaveModelService.java 2011-12-07 11:01:38 UTC (rev 510)
@@ -0,0 +1,17 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.model.MascModel;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class SaveModelService extends MascService {
+
+ public File saveModel(MascModel mascModel) {
+ // TODO
+ return null;
+ }
+}
Modified: masc/pom.xml
===================================================================
--- masc/pom.xml 2011-12-01 09:04:18 UTC (rev 509)
+++ masc/pom.xml 2011-12-07 11:01:38 UTC (rev 510)
@@ -76,7 +76,7 @@
<!-- libraries version -->
<nuitonI18nVersion>2.4.1</nuitonI18nVersion>
- <nuitonUtilsVersion>2.1</nuitonUtilsVersion>
+ <nuitonUtilsVersion>2.4</nuitonUtilsVersion>
<eugenePluginVersion>2.4.1</eugenePluginVersion>
<jaxxVersion>2.4.2</jaxxVersion>
@@ -92,6 +92,7 @@
<dependencyManagement>
<dependencies>
+ <!-- nuiton dependencies -->
<dependency>
<groupId>org.nuiton</groupId>
<artifactId>nuiton-validator</artifactId>
@@ -110,6 +111,12 @@
<version>${nuitonI18nVersion}</version>
</dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>10.0.1</version>
+ </dependency>
+
</dependencies>
</dependencyManagement>
1
0
r509 - in masc: masc-api masc-api/src/main/java masc-api/src/main/java/fr masc-api/src/main/java/fr/inra masc-api/src/main/java/fr/inra/masc masc-api/src/main/java/fr/inra/masc/model masc-api/src/main/java/fr/inra/masc/services masc-api/src/main/xmi src/site
by sletellier@users.nuiton.org 01 Dec '11
by sletellier@users.nuiton.org 01 Dec '11
01 Dec '11
Author: sletellier
Date: 2011-12-01 10:04:18 +0100 (Thu, 01 Dec 2011)
New Revision: 509
Url: http://nuiton.org/repositories/revision/sandbox/509
Log:
- Make some entities visitable
Added:
masc/masc-api/src/main/java/fr/
masc/masc-api/src/main/java/fr/inra/
masc/masc-api/src/main/java/fr/inra/masc/
masc/masc-api/src/main/java/fr/inra/masc/MascVisitor.java
masc/masc-api/src/main/java/fr/inra/masc/model/
masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java
masc/masc-api/src/main/java/fr/inra/masc/services/
masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java
Modified:
masc/masc-api/pom.xml
masc/masc-api/src/main/xmi/masc.zargo
masc/src/site/site_fr.xml
Modified: masc/masc-api/pom.xml
===================================================================
--- masc/masc-api/pom.xml 2011-11-30 16:52:36 UTC (rev 508)
+++ masc/masc-api/pom.xml 2011-12-01 09:04:18 UTC (rev 509)
@@ -49,8 +49,11 @@
<configuration>
<inputs>zargo</inputs>
<resolver>org.nuiton.util.FasterCachedResourceResolver</resolver>
- <templates>org.nuiton.eugene.java.JavaBeanTransformer,
- org.nuiton.eugene.java.JavaEnumerationTransformer</templates>
+ <templates>
+ org.nuiton.eugene.java.JavaInterfaceTransformer,
+ org.nuiton.eugene.java.JavaBeanTransformer,
+ org.nuiton.eugene.java.JavaEnumerationTransformer
+ </templates>
</configuration>
<goals>
<goal>smart-generate</goal>
Added: masc/masc-api/src/main/java/fr/inra/masc/MascVisitor.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/MascVisitor.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/MascVisitor.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,8 @@
+package fr.inra.masc;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascVisitor {
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ComputableCriteriaImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ComputableCriteriaImpl extends ComputableCriteria {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/CriteriaImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,8 @@
+package fr.inra.masc.model;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public abstract class CriteriaImpl extends Criteria {
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/EditableCriteriaImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,10 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public abstract class EditableCriteriaImpl extends EditableCriteria {
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/MascModelImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class MascModelImpl extends MascModel {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/OptionImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class OptionImpl extends Option {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/OptionValueImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class OptionValueImpl extends OptionValue {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ScaleValueImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ScaleValueImpl extends ScaleValue {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ThresholdCriteriaImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ThresholdCriteriaImpl extends ThresholdCriteria {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/model/ValuedCriteriaImpl.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,15 @@
+package fr.inra.masc.model;
+
+import fr.inra.masc.MascVisitor;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ValuedCriteriaImpl extends ValuedCriteria {
+
+ @Override
+ public void accept(MascVisitor visitor) {
+ // TODO
+ }
+}
Added: masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java
===================================================================
--- masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java (rev 0)
+++ masc/masc-api/src/main/java/fr/inra/masc/services/ImportService.java 2011-12-01 09:04:18 UTC (rev 509)
@@ -0,0 +1,16 @@
+package fr.inra.masc.services;
+
+import fr.inra.masc.model.MascModel;
+
+import java.io.File;
+
+/**
+ * @author sletellier <letellier(a)codelutin.com>
+ * @since 0.1
+ */
+public class ImportService {
+
+ public MascModel importMascFile(File mascFile) {
+ return null;
+ }
+}
Modified: masc/masc-api/src/main/xmi/masc.zargo
===================================================================
(Binary files differ)
Modified: masc/src/site/site_fr.xml
===================================================================
--- masc/src/site/site_fr.xml 2011-11-30 16:52:36 UTC (rev 508)
+++ masc/src/site/site_fr.xml 2011-12-01 09:04:18 UTC (rev 509)
@@ -1,27 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
- #%L
- Masc
-
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2011 Inra
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- -->
<project name="Masc">
1
0
r508 - in masc: . masc-api masc-api/src masc-api/src/main masc-api/src/main/xmi masc-ui masc-ui/src masc-ui/src/main masc-ui/src/main/java masc-ui/src/main/java/fr masc-ui/src/main/java/fr/inra masc-ui/src/main/resources masc-ui/src/main/resources/i18n masc-ui/src/test src src/site
by sletellier@users.nuiton.org 30 Nov '11
by sletellier@users.nuiton.org 30 Nov '11
30 Nov '11
Author: sletellier
Date: 2011-11-30 17:52:36 +0100 (Wed, 30 Nov 2011)
New Revision: 508
Url: http://nuiton.org/repositories/revision/sandbox/508
Log:
Initialisation of masc project
Added:
masc/LICENSE.txt
masc/README.txt
masc/changelog.txt
masc/masc-api/
masc/masc-api/LICENSE.txt
masc/masc-api/README.txt
masc/masc-api/changelog.txt
masc/masc-api/pom.xml
masc/masc-api/src/
masc/masc-api/src/license/
masc/masc-api/src/main/
masc/masc-api/src/main/java/
masc/masc-api/src/main/xmi/
masc/masc-api/src/main/xmi/masc.zargo
masc/masc-ui/
masc/masc-ui/LICENSE.txt
masc/masc-ui/README.txt
masc/masc-ui/changelog.txt
masc/masc-ui/pom.xml
masc/masc-ui/src/
masc/masc-ui/src/license/
masc/masc-ui/src/main/
masc/masc-ui/src/main/java/
masc/masc-ui/src/main/java/fr/
masc/masc-ui/src/main/java/fr/inra/
masc/masc-ui/src/main/java/fr/inra/mask/
masc/masc-ui/src/main/resources/
masc/masc-ui/src/main/resources/i18n/
masc/masc-ui/src/main/resources/i18n/masc-ui_en_GB.properties
masc/masc-ui/src/main/resources/i18n/masc-ui_fr_FR.properties
masc/masc-ui/src/main/resources/log4j.properties
masc/masc-ui/src/test/
masc/masc-ui/src/test/java/
masc/pom.xml
masc/src/
masc/src/announcement/
masc/src/site/
masc/src/site/resources/
masc/src/site/rst/
masc/src/site/site_fr.xml
Modified:
masc/
Property changes on: masc
___________________________________________________________________
Added: svn:ignore
+ target
*.ipr
*.iws
*.iml
*.log
Added: masc/LICENSE.txt
===================================================================
--- masc/LICENSE.txt (rev 0)
+++ masc/LICENSE.txt 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<http://www.gnu.org/licenses/>.
\ No newline at end of file
Property changes on: masc/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/README.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/changelog.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-api
___________________________________________________________________
Added: svn:ignore
+ target
*.ipr
*.iws
*.iml
*.log
Added: masc/masc-api/LICENSE.txt
===================================================================
--- masc/masc-api/LICENSE.txt (rev 0)
+++ masc/masc-api/LICENSE.txt 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<http://www.gnu.org/licenses/>.
\ No newline at end of file
Property changes on: masc/masc-api/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-api/README.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-api/changelog.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: masc/masc-api/pom.xml
===================================================================
--- masc/masc-api/pom.xml (rev 0)
+++ masc/masc-api/pom.xml 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>fr.inra</groupId>
+ <artifactId>masc</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </parent>
+
+ <groupId>fr.inra.masc</groupId>
+ <artifactId>masc-api</artifactId>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>Masc :: API</name>
+ <description>Masc - API module</description>
+
+ <dependencies>
+ </dependencies>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <packaging>jar</packaging>
+
+ <build>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>maven-eugene-plugin</artifactId>
+ <configuration>
+ <defaultPackage>fr.inra.masc</defaultPackage>
+ <fullPackagePath>fr.inra.masc</fullPackagePath>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <configuration>
+ <inputs>zargo</inputs>
+ <resolver>org.nuiton.util.FasterCachedResourceResolver</resolver>
+ <templates>org.nuiton.eugene.java.JavaBeanTransformer,
+ org.nuiton.eugene.java.JavaEnumerationTransformer</templates>
+ </configuration>
+ <goals>
+ <goal>smart-generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Property changes on: masc/masc-api/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: masc/masc-api/src/main/xmi/masc.zargo
===================================================================
(Binary files differ)
Property changes on: masc/masc-api/src/main/xmi/masc.zargo
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-ui
___________________________________________________________________
Added: svn:ignore
+ target
*.ipr
*.iws
*.iml
*.log
Added: masc/masc-ui/LICENSE.txt
===================================================================
--- masc/masc-ui/LICENSE.txt (rev 0)
+++ masc/masc-ui/LICENSE.txt 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<http://www.gnu.org/licenses/>.
\ No newline at end of file
Property changes on: masc/masc-ui/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-ui/README.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-ui/changelog.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: masc/masc-ui/pom.xml
===================================================================
--- masc/masc-ui/pom.xml (rev 0)
+++ masc/masc-ui/pom.xml 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>fr.inra</groupId>
+ <artifactId>masc</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </parent>
+
+ <groupId>fr.inra.masc</groupId>
+ <artifactId>masc-ui</artifactId>
+
+ <dependencies>
+
+ </dependencies>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>Masc :: Swing UI</name>
+ <description>Masc - UI swing module</description>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <build>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>maven-i18n-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>scan-sources</id>
+ <goals>
+ <goal>parserJava</goal>
+ <goal>gen</goal>
+ </goals>
+ <!--<configuration>-->
+ <!--<entries>-->
+ <!--<entry>-->
+ <!--<basedir>${maven.gen.dir}/java/</basedir>-->
+ <!--</entry>-->
+ <!--</entries>-->
+ <!--</configuration>-->
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+</project>
\ No newline at end of file
Property changes on: masc/masc-ui/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-ui/src/main/resources/i18n/masc-ui_en_GB.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: masc/masc-ui/src/main/resources/i18n/masc-ui_fr_FR.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: masc/masc-ui/src/main/resources/log4j.properties
===================================================================
--- masc/masc-ui/src/main/resources/log4j.properties (rev 0)
+++ masc/masc-ui/src/main/resources/log4j.properties 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,40 @@
+###
+# #%L
+# Masc :: Swing UI
+#
+# $Id$
+# $HeadURL$
+# %%
+# Copyright (C) 2011 Inra
+# %%
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# #L%
+###
+# Global logging configuration
+log4j.rootLogger=ERROR, stdout, file
+
+# Console output
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
+log4j.appender.file=org.apache.log4j.RollingFileAppender
+log4j.appender.file.file=${masc.log.home}masc.log
+log4j.appender.file.MaxFileSize=10MB
+log4j.appender.file.MaxBackupIndex=4
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %5p [%t] %c - %m%n
+
+# masc
+log4j.logger.fr.inra.mask=INFO
Property changes on: masc/masc-ui/src/main/resources/log4j.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: masc/pom.xml
===================================================================
--- masc/pom.xml (rev 0)
+++ masc/pom.xml 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,219 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>org.nuiton</groupId>
+ <artifactId>mavenpom4labs</artifactId>
+ <version>3.0.5</version>
+ </parent>
+
+ <groupId>fr.inra</groupId>
+ <artifactId>masc</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <modules>
+ <module>masc-api</module>
+ <module>masc-ui</module>
+ </modules>
+
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>Masc</name>
+
+ <description>
+ Un outil pour l’analyse de la contribution des systèmes de culture au développement durable.
+ </description>
+ <inceptionYear>2011</inceptionYear>
+
+ <organization>
+ <name>Code Lutin</name>
+ </organization>
+
+ <developers>
+ <developer>
+ <id>sletellier</id>
+ <name>Sylvain Letellier</name>
+ <email>letellier(a)codelutin.com</email>
+ <organization>CodeLutin</organization>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>+2</timezone>
+ </developer>
+ <developer>
+ <id>tchemit</id>
+ <name>Tony Chemit</name>
+ <email>chemit(a)codelutin.com</email>
+ <organization>CodeLutin</organization>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>+2</timezone>
+ </developer>
+ </developers>
+
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+ <packaging>pom</packaging>
+
+ <properties>
+
+ <projectId>masc</projectId>
+
+ <!-- libraries version -->
+ <nuitonI18nVersion>2.4.1</nuitonI18nVersion>
+ <nuitonUtilsVersion>2.1</nuitonUtilsVersion>
+ <eugenePluginVersion>2.4.1</eugenePluginVersion>
+ <jaxxVersion>2.4.2</jaxxVersion>
+
+ <license.organizationName>Inra</license.organizationName>
+ <license.licenseName>agpl_v3</license.licenseName>
+
+ <labs.list.host>lists.mulcyber.toulouse.inra.fr/cgi-bin/</labs.list.host>
+ <platform>mulcyber.toulouse.inra.fr</platform>
+ <labs.id>142</labs.id>
+ <site.server>mulcyber</site.server>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-validator</artifactId>
+ <version>${nuitonUtilsVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils</artifactId>
+ <version>${nuitonUtilsVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>nuiton-i18n</artifactId>
+ <version>${nuitonI18nVersion}</version>
+ </dependency>
+
+ </dependencies>
+
+ </dependencyManagement>
+
+ <build>
+
+ <pluginManagement>
+ <plugins>
+
+ <!-- plugin site -->
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.nuiton.jrst</groupId>
+ <artifactId>doxia-module-jrst</artifactId>
+ <version>${jrstPluginVersion}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>maven-i18n-plugin</artifactId>
+ <version>${nuitonI18nVersion}</version>
+ <configuration>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <version>${jaxxVersion}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>maven-eugene-plugin</artifactId>
+ <version>${eugenePluginVersion}</version>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+
+ </build>
+
+ <!--Any mailing lists for the project -->
+ <mailingLists>
+
+ <mailingList>
+ <name>${projectId}-users</name>
+ <subscribe>
+ http://${labs.list.host}/mailman/listinfo/${projectId}-users
+ </subscribe>
+ <unsubscribe>
+ http://${labs.list.host}/mailman/listinfo/${projectId}-users
+ </unsubscribe>
+ <post>${projectId}-users(a)${labs.list.host}</post>
+ <archive>http://${labs.list.host}/pipermail/${projectId}-users/
+ </archive>
+ </mailingList>
+
+ <mailingList>
+ <name>${projectId}-devel</name>
+ <subscribe>
+ http://${labs.list.host}/mailman/listinfo/${projectId}-devel
+ </subscribe>
+ <unsubscribe>
+ http://${labs.list.host}/mailman/listinfo/${projectId}-devel
+ </unsubscribe>
+ <post>${projectId}-devel(a)${labs.list.host}</post>
+ <archive>http://${labs.list.host}/pipermail/${projectId}-devel/
+ </archive>
+ </mailingList>
+
+ <mailingList>
+ <name>${projectId}-commits</name>
+ <subscribe>
+ http://${labs.list.host}/mailman/listinfo/${projectId}-commits
+ </subscribe>
+ <unsubscribe>
+ http://${labs.list.host}/mailman/listinfo/${projectId}-commits
+ </unsubscribe>
+ <post>${projectId}-commits(a)${labs.list.host}</post>
+ <archive>http://${labs.list.host}/pipermail/${projectId}-commits/
+ </archive>
+ </mailingList>
+
+ </mailingLists>
+
+ <issueManagement>
+ <system>gforge</system>
+ <url>https://${platform}/tracker?group_id=${labs.id}</url>
+ </issueManagement>
+
+ <scm>
+ <connection>
+ scm:svn:svn+ssh://${username}@scm.mulcyber.toulouse.inra.fr/svnroot/${projectId}/trunk
+ </connection>
+ <developerConnection>
+ scm:svn:svn+ssh://${username}@scm.mulcyber.toulouse.inra.fr/svnroot/${projectId}/trunk
+ </developerConnection>
+ <url>
+ scm:svn:svn+ssh://${username}@scm.mulcyber.toulouse.inra.fr/svnroot/${projectId}/trunk
+ </url>
+ </scm>
+</project>
Property changes on: masc/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: masc/src/site/site_fr.xml
===================================================================
--- masc/src/site/site_fr.xml (rev 0)
+++ masc/src/site/site_fr.xml 2011-11-30 16:52:36 UTC (rev 508)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Masc
+
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2011 Inra
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="Masc">
+
+ <bannerLeft>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft>
+
+ <body>
+
+ <links>
+ <item name="Inra" href="http://www.inra.fr/"/>
+ <item name="CIAM" href="http://ciam.inra.fr/ciam/"/>
+ </links>
+ <menu ref="reports"/>
+ </body>
+
+</project>
Property changes on: masc/src/site/site_fr.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
1
0