r1296 - in branches/isis-fish-3.1.4/src: java/fr/ifremer/isisfish/entities uimodel/fr/ifremer/isisfish/ui/input uimodel/fr/ifremer/isisfish/ui/simulator
Author: bpoussin Date: 2008-08-13 18:15:25 +0000 (Wed, 13 Aug 2008) New Revision: 1296 Modified: branches/isis-fish-3.1.4/src/java/fr/ifremer/isisfish/entities/SetOfVesselsImpl.java branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/PopulationMigration.xgl branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xgl branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xml branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xgl branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xml branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xgl branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xml Log: - ajout des composants graphiques pour l'edition des equations (inactivity, technicalEfficiency) - ajout de la possibilite de lancer les simulations en batch (sous process) Modified: branches/isis-fish-3.1.4/src/java/fr/ifremer/isisfish/entities/SetOfVesselsImpl.java =================================================================== --- branches/isis-fish-3.1.4/src/java/fr/ifremer/isisfish/entities/SetOfVesselsImpl.java 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/java/fr/ifremer/isisfish/entities/SetOfVesselsImpl.java 2008-08-13 18:15:25 UTC (rev 1296) @@ -84,7 +84,7 @@ EquationDAO dao = IsisFishDAOHelper.getEquationDAO(getTopiaContext()); // create Growth equation eq = dao.create(); - eq.setCategory("Inactivity"); + eq.setCategory("TechnicalEfficiency"); eq.setJavaInterface(SoVTechnicalEfficiencyEquation.class); eq.setLanguage(Language.JAVA); setTechnicalEfficiencyEquation(eq); Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/PopulationMigration.xgl =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/PopulationMigration.xgl 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/PopulationMigration.xgl 2008-08-13 18:15:25 UTC (rev 1296) @@ -33,7 +33,7 @@ </tr> </table> -<table Zonespacing="5"> +<table cellspacing="5"> <tr> <td fill="Both" width="100%">buttonPopulationMigrationSave</td> <td fill="Both" width="100%">buttonPopulationMigrationCancel</td> Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xgl =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xgl 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xgl 2008-08-13 18:15:25 UTC (rev 1296) @@ -26,11 +26,25 @@ <td class="label">labelSetOfVesselsFixedCosts</td> <td class="field">fieldSetOfVesselsFixedCosts</td> </tr> + <tr> - <td class="label" rowspan="3">labelSetOfVesselsComment</td> - <td class="field" height="20%" rowspan="3">fieldSetOfVesselsComment</td> + <td class="label">labelSetOfVesselsTechnicalEfficiency</td> + <td class="field">fieldSetOfVesselsTechnicalEfficiency</td> </tr> + <tr> + <td class="label">buttonSetOfVesselsTechnicalEfficiencySaveAsModel</td> + <td class="field" height="30%" rowspan="3">fieldScriptSetOfVesselsTechnicalEfficiency</td> + </tr> + <tr> + <td class="label">buttonSetOfVesselsTechnicalEfficiencyEquationEditor</td> + </tr> <tr></tr> + + + <tr> + <td class="label" rowspan="2">labelSetOfVesselsComment</td> + <td class="field" height="20%" rowspan="2">fieldSetOfVesselsComment</td> + </tr> <tr></tr> <tr> Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xml =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xml 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/SetOfVessels.xml 2008-08-13 18:15:25 UTC (rev 1296) @@ -36,6 +36,31 @@ <DocumentEvents onModified="Update($fieldSetOfVesselsFixedCosts/text)"/> </textfield> + + <label constraints="labelSetOfVesselsTechnicalEfficiency" text="isisfish.setOfVessels.technicalEfficiency"/> + <combobox constraints="fieldSetOfVesselsTechnicalEfficiency" id="fieldSetOfVesselsTechnicalEfficiency" + origin="$SetOfVessels/technicalEfficiencyEquation" renderer="name" firstNull="true" + actionCommand="Update($fieldSetOfVesselsTechnicalEfficiency/selectedItem/content, $fieldScriptSetOfVesselsTechnicalEfficiency/text)"> + <ComboBoxModel origin='fr.ifremer.isisfish.datastore.FormuleStorage.getFormules($TopiaContext, "TechnicalEfficiency")'/> + </combobox> + + <button constraints="buttonSetOfVesselsTechnicalEfficiencySaveAsModel" text="isisfish.common.saveModel" + actionCommand='input.Input.saveEquationAsModel($SetOfVessels/technicalEfficiencyEquation);refreshView($fieldSetOfVesselsTechnicalEfficiency)'/> + + <button constraints="buttonSetOfVesselsTechnicalEfficiencyEquationEditor" text="isisfish.common.openEditor" + actionCommand='input.Input.openEditor($SetOfVessels/technicalEfficiencyEquation/category,$SetOfVessels/technicalEfficiencyEquation/name,$SetOfVessels/technicalEfficiencyEquation/javaInterface,$SetOfVessels/technicalEfficiencyEquation/content,$fieldScriptSetOfVesselsTechnicalEfficiency)'/> + + <editor constraints="fieldScriptSetOfVesselsTechnicalEfficiency" askIfNotSaved="false" + id="fieldScriptSetOfVesselsTechnicalEfficiency" + origin="org.codelutin.util.FileUtil.getTempFile($SetOfVessels/technicalEfficiencyEquation/content, '.java')"> + <DocumentEvents onModified="Update"> + <UpdateOrigin + target="setEquationTechnicalEfficiency($SetOfVessels, $fieldScriptSetOfVesselsTechnicalEfficiency/text)"/> + </DocumentEvents> + </editor> + + + <label constraints="labelSetOfVesselsComment" text="isisfish.setOfVessels.comments"/> <scrollPane constraints="fieldSetOfVesselsComment"> <textarea id="fieldSetOfVesselsComment" origin="$SetOfVessels/comment"> Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xgl =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xgl 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xgl 2008-08-13 18:15:25 UTC (rev 1296) @@ -18,9 +18,18 @@ <td class="label">labelStrategyProportionSetOfVessels</td> <td class="field">fieldStrategyProportionSetOfVessels</td> </tr> + + <tr> + <td></td> + <td class="field">fieldUseEquationInactivity</td> + </tr> + <tr> + <td class="labelTitle" fill="Both" height="100%" width="100%" colspan="2">hideablePanelInactivityEquation</td> + </tr> + <tr> - <td class="label" rowspan="3">labelStrategyComment</td> - <td class="field" height="20%" rowspan="3">fieldStrategyComment</td> + <td class="label" rowspan="2">labelStrategyComment</td> + <td class="field" height="20%" rowspan="2">fieldStrategyComment</td> </tr> <tr></tr> <tr></tr> @@ -30,5 +39,26 @@ </tr> </table> + <table> + <tr> + <td fill="Both" height="100%" width="100%">fieldUseEquation</td> + </tr> + </table> + + <table cellspacing="2"> + <tr> + <td class="label">labelStrategyInactivity</td> + <td class="field">fieldStrategyInactivity</td> + </tr> + <tr> + <td class="label">buttonStrategyInactivitySaveAsModel</td> + <td class="field" height="30%" rowspan="3">fieldScriptStrategyInactivity</td> + </tr> + <tr> + <td class="label">buttonStrategyInactivityEquationEditor</td> + </tr> + <tr></tr> + </table> + </layout> Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xml =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xml 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/input/Strategy.xml 2008-08-13 18:15:25 UTC (rev 1296) @@ -22,6 +22,42 @@ <DocumentEvents onModified="Update($fieldStrategyProportionSetOfVessels/text)"/> </textfield> + <checkbox constraints="fieldUseEquationInactivity" id="fieldUseEquationInactivity" + origin="$Strategy/inactivityEquationUsed" text="isisfish.strategy.inactivityEquationUsed"> + <ItemEvents onStateChanged="Update($fieldUseEquationInactivity/selected, $Strategy/inactivityEquationUsed, refreshView($hideablePanelInactivityEquation))"/> + </checkbox> + + + <panel id="hideablePanelInactivityEquation" constraints="hideablePanelInactivityEquation" layout="XMLGridLayout(fr/ifremer/isisfish/ui/input/Strategy.xgl)"> + + <hidablePanel constraints="fieldUseEquation" + origin="getInactivityEquationUsed($Strategy)" + layout="XMLGridLayout(fr/ifremer/isisfish/ui/input/Strategy.xgl)"> + <label constraints="labelStrategyInactivity" text="isisfish.strategy.inactivity"/> + <combobox constraints="fieldStrategyInactivity" id="fieldStrategyInactivity" + origin="$Strategy/inactivityEquation" renderer="name" firstNull="true" + actionCommand="Update($fieldStrategyInactivity/selectedItem/content, $fieldScriptStrategyInactivity/text)"> + <ComboBoxModel origin='fr.ifremer.isisfish.datastore.FormuleStorage.getFormules($TopiaContext, "Inactivity")'/> + </combobox> + + <button constraints="buttonStrategyInactivitySaveAsModel" text="isisfish.common.saveModel" + actionCommand='input.Input.saveEquationAsModel($Strategy/inactivityEquation);refreshView($fieldStrategyInactivity)'/> + + <button constraints="buttonStrategyInactivityEquationEditor" text="isisfish.common.openEditor" + actionCommand='input.Input.openEditor($Strategy/inactivityEquation/category,$Strategy/inactivityEquation/name,$Strategy/inactivityEquation/javaInterface,$Strategy/inactivityEquation/content,$fieldScriptStrategyInactivity)'/> + + <editor constraints="fieldScriptStrategyInactivity" askIfNotSaved="false" + id="fieldScriptStrategyInactivity" + origin="org.codelutin.util.FileUtil.getTempFile($Strategy/inactivityEquation/content, '.java')"> + <DocumentEvents onModified="Update"> + <UpdateOrigin + target="setEquationInactivity($Strategy, $fieldScriptStrategyInactivity/text)"/> + </DocumentEvents> + </editor> + + </hidablePanel> + </panel> + <label constraints="labelStrategyComment" text="isisfish.strategy.comments"/> <scrollPane constraints="fieldStrategyComment"> <textarea id="fieldStrategyComment" origin="$Strategy/comment"> Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xgl =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xgl 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xgl 2008-08-13 18:15:25 UTC (rev 1296) @@ -20,7 +20,8 @@ <td width="99%" colspan="3" fill="Horizontal">fieldSimulAdvParamsSimulatorSelect</td> </tr> <tr> - <td fill="Horizontal" colspan="2" width="33%">fieldSimulAdvParamsSimulatorLocal</td> + <td fill="Horizontal" width="33%">fieldSimulAdvParamsSimulatorLocal</td> + <td fill="Horizontal" width="33%">fieldSimulAdvParamsSimulatorSubProcess</td> <td fill="Horizontal" width="33%">fieldSimulationStatistique</td> <td fill="Horizontal" width="33%">fieldSimulationCache</td> </tr> Modified: branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xml =================================================================== --- branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xml 2008-08-13 13:17:17 UTC (rev 1295) +++ branches/isis-fish-3.1.4/src/uimodel/fr/ifremer/isisfish/ui/simulator/AdvancedParams.xml 2008-08-13 18:15:25 UTC (rev 1296) @@ -33,6 +33,12 @@ origin="$SimulationParameter/local" actionCommand="Update($fieldSimulAdvParamsSimulatorLocal/selected)"/> + <checkbox text="isisfish.advancedParams.subProcessSimulation" + constraints="fieldSimulAdvParamsSimulatorSubProcess" + id="fieldSimulAdvParamsSimulatorSubProcess" + origin="$SimulationParameter/subProcess" + actionCommand="Update($fieldSimulAdvParamsSimulatorSubProcess/selected)"/> + <!-- | | Trace/Cache option
participants (1)
-
bpoussin@users.labs.libre-entreprise.org