Class SellOutManagement

java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.experimental.livestock.SellOutManagement
All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer

public class SellOutManagement extends net.simplace.sim.model.FWSimComponent
Author:
Andreas Enders, info@andreas-enders.de Priority driven sell out manager to produce needed money resource from lifestock

Component Variables

Content TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcMinNumberGroup1Minimum Number of Animals Group 1DOUBLE0.0999.010.0
constantcMinNumberGroup10Minimum Number of Animals Group 10DOUBLE0.0999.010.0
constantcMinNumberGroup11Minimum Number of Animals Group 11DOUBLE0.0999.010.0
constantcMinNumberGroup12Minimum Number of Animals Group 12DOUBLE0.0999.010.0
constantcMinNumberGroup2Minimum Number of Animals Group 2DOUBLE0.0999.010.0
constantcMinNumberGroup3Minimum Number of Animals Group 3DOUBLE0.0999.010.0
constantcMinNumberGroup4Minimum Number of Animals Group 4DOUBLE0.0999.010.0
constantcMinNumberGroup5Minimum Number of Animals Group 5DOUBLE0.0999.010.0
constantcMinNumberGroup6Minimum Number of Animals Group 6DOUBLE0.0999.010.0
constantcMinNumberGroup7Minimum Number of Animals Group 7DOUBLE0.0999.010.0
constantcMinNumberGroup8Minimum Number of Animals Group 8DOUBLE0.0999.010.0
constantcMinNumberGroup9Minimum Number of Animals Group 9DOUBLE0.0999.010.0
constantcPriceLivestockGroup1Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup10Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup11Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup12Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup2Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup3Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup4Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup5Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup6Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup7Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup8Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcPriceLivestockGroup9Price for 1 kg of Group 1 saleDOUBLEcurrency0.0999.010.0
constantcWeightPerAnimalGroup1Weight of one animal Group 1DOUBLEg0.0999999.0300000.0
constantcWeightPerAnimalGroup10Weight of one animal Group 10DOUBLEg0.0999999.010.0
constantcWeightPerAnimalGroup11Weight of one animal Group 11DOUBLEg0.0999999.010.0
constantcWeightPerAnimalGroup12Weight of one animal Group 12DOUBLEg0.0999999.010.0
constantcWeightPerAnimalGroup2Weight of one animal Group 2DOUBLEg0.0999999.0185000.0
constantcWeightPerAnimalGroup3Weight of one animal Group 3DOUBLEg0.0999999.045000.0
constantcWeightPerAnimalGroup4Weight of one animal Group 4DOUBLEg0.0999999.035000.0
constantcWeightPerAnimalGroup5Weight of one animal Group 5DOUBLEg0.0999999.0150000.0
constantcWeightPerAnimalGroup6Weight of one animal Group 6DOUBLEg0.0999999.0250000.0
constantcWeightPerAnimalGroup7Weight of one animal Group 7DOUBLEg0.0999999.010.0
constantcWeightPerAnimalGroup8Weight of one animal Group 8DOUBLEg0.0999999.010.0
constantcWeightPerAnimalGroup9Weight of one animal Group 9DOUBLEg0.0999999.010.0
inputiCashAvailMoney available (+) or required (-) for livestock saleDOUBLEcurrency-9.9999999E79.9999999E70.0
inputiDoInitializeSwitch to re-initialize the model with initial values.BOOLEAN1--false
inputiNumberGroup1Number of Animals Group 1DOUBLE0.09999.00.0
inputiNumberGroup10Number of Animals Group 10DOUBLE0.09999.00.0
inputiNumberGroup11Number of Animals Group 11DOUBLE0.09999.00.0
inputiNumberGroup12Number of Animals Group 12DOUBLE0.09999.00.0
inputiNumberGroup2Number of Animals Group 2DOUBLE0.09999.00.0
inputiNumberGroup3Number of Animals Group 3DOUBLE0.09999.00.0
inputiNumberGroup4Number of Animals Group 4DOUBLE0.09999.00.0
inputiNumberGroup5Number of Animals Group 5DOUBLE0.09999.00.0
inputiNumberGroup6Number of Animals Group 6DOUBLE0.09999.00.0
inputiNumberGroup7Number of Animals Group 7DOUBLE0.09999.00.0
inputiNumberGroup8Number of Animals Group 8DOUBLE0.09999.00.0
inputiNumberGroup9Number of Animals Group 9DOUBLE0.09999.00.0
outEarningsTotal earningsDOUBLEcurrency0.09.9999999E70.0
outNumberSoldGroup1Number of Animals sold from Group 1DOUBLE0.0999.00.0
outNumberSoldGroup10Number of Animals sold from Group 10DOUBLE0.0999.00.0
outNumberSoldGroup11Number of Animals sold from Group 11DOUBLE0.0999.00.0
outNumberSoldGroup12Number of Animals sold from Group 12DOUBLE0.0999.00.0
outNumberSoldGroup2Number of Animals sold from Group 2DOUBLE0.0999.00.0
outNumberSoldGroup3Number of Animals sold from Group 3DOUBLE0.0999.00.0
outNumberSoldGroup4Number of Animals sold from Group 4DOUBLE0.0999.00.0
outNumberSoldGroup5Number of Animals sold from Group 5DOUBLE0.0999.00.0
outNumberSoldGroup6Number of Animals sold from Group 6DOUBLE0.0999.00.0
outNumberSoldGroup7Number of Animals sold from Group 7DOUBLE0.0999.00.0
outNumberSoldGroup8Number of Animals sold from Group 8DOUBLE0.0999.00.0
outNumberSoldGroup9Number of Animals sold from Group 9DOUBLE0.0999.00.0
outSaleSuccessIf sale could meet the required money needBOOLEAN---false
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.simplace.sim.model.FWSimComponent

    net.simplace.sim.model.FWSimComponent.TEST_STATE
  • Field Summary

    Fields inherited from class net.simplace.sim.model.FWSimComponent

    iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor used by class.forName()
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.simplace.sim.model.FWSimComponent
    clone(net.simplace.sim.util.FWSimVarMap aVarMap)
     
    HashMap<String,net.simplace.sim.util.FWSimVariable<?>>
    Create the FWSimVariables as interface for this SimComponent
    HashMap<String,net.simplace.sim.util.FWSimVariable<?>>
    fillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck)
    called for single component test to check the components algorithm.
    protected void
    Initializes the fields by getting input and output FWSimVariables from VarMap
    protected void
    Process the algorithm and write the results back to VarMap

    Methods inherited from class net.simplace.sim.model.FWSimComponent

    addVariable, bind, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getContentType, getCreateFormXML, getDescription, getEditFormXML, getFieldMap, getFrequence, getFrequenceRuleScript, getInputs, getInputVariables, getMasterComponentGroup, getName, getOrderNumber, getOutputVariables, getVariable, getVariableField, getVarMap, initialize, isConditionCheck, isVariableAvailable, performLinks, performLinks, readInputs, removeVariable, reset, runComponentTest, setVariablesDefault, toComponentLinkingXML, toDocXML, toGroupXML, toOutputDefinitionXML, toResourcesDataXML, toResourcesDefinitionXML, toString, toXML, writeVarInfos

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SellOutManagement

      public SellOutManagement()
      Empty constructor used by class.forName()
  • Method Details

    • createVariables

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> createVariables()
      Create the FWSimVariables as interface for this SimComponent
      Specified by:
      createVariables in interface net.simplace.sim.util.FWSimFieldContainer
      Specified by:
      createVariables in class net.simplace.sim.model.FWSimComponent
      See Also:
      • net.simplace.simulation.model.FWSimComponent#createVariables()
    • init

      protected void init()
      Initializes the fields by getting input and output FWSimVariables from VarMap
      Specified by:
      init in class net.simplace.sim.model.FWSimComponent
      See Also:
      • net.simplace.simulation.model.FWSimComponent#init()
    • process

      protected void process()
      Process the algorithm and write the results back to VarMap
      Specified by:
      process in class net.simplace.sim.model.FWSimComponent
      See Also:
      • net.simplace.simulation.model.FWSimComponent#process()
    • fillTestVariables

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> fillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck)
      called for single component test to check the components algorithm.
      Specified by:
      fillTestVariables in class net.simplace.sim.model.FWSimComponent
      See Also:
      • net.simplace.sim.util.FWSimFieldContainer#fillTestVariables(int aParamIndex, TEST_STATE aDefineOrCheck)
    • clone

      protected net.simplace.sim.model.FWSimComponent clone(net.simplace.sim.util.FWSimVarMap aVarMap)
      Specified by:
      clone in class net.simplace.sim.model.FWSimComponent
      See Also:
      • net.simplace.simulation.model.FWSimComponent#clone(net.simplace.simulation.util.FWSimVarMap)