Package simulationEngine.SpeciesZoneType

Examples of simulationEngine.SpeciesZoneType.SpeciesTypeEnum


   
   
    private List<ManipulatingParameter> getSystemParameter(SpeciesZoneType species, int timestepIdx)
    {
       
        SpeciesTypeEnum type = species.getType();
        int nodeIdx = species.getNodeIndex();
       
        List<ManipulatingParameter> sParams = new ArrayList<ManipulatingParameter>();
               
        if(type == SpeciesTypeEnum.PLANT)
View Full Code Here


                        double biomass = speciesInfo.getBiomass() * Constants.BIOMASS_SCALE;
                        int count = biomass < 1 ? 0 : (int) Math.ceil(biomass / speciesType.getAvgBiomass());

                        if (!mSpecies.containsKey(speciesInfo.getNodeIdx())) {
                            SpeciesTypeEnum group_type = SpeciesTypeEnum.ANIMAL;
                            if (speciesType.getGroupType() == Constants.ORGANISM_TYPE_PLANT) {
                                group_type = SpeciesTypeEnum.PLANT;
                            }

                            szt = new SpeciesZoneType(speciesInfo.getNodeName(), speciesInfo.getNodeIdx(), count, speciesType.getAvgBiomass(), biomass, group_type);
View Full Code Here

            SpeciesType speciesType = GameServer.getInstance().getSpeciesTypeByNodeID(node_id);
            int count = nodeList.get(node_id);

            //NEW SPECIES
            if (!mSpecies.containsKey(node_id)) {
                SpeciesTypeEnum group_type = SpeciesTypeEnum.ANIMAL;
                if (speciesType.getGroupType() == Constants.ORGANISM_TYPE_PLANT) {
                    group_type = SpeciesTypeEnum.PLANT;
                }

                szt = new SpeciesZoneType(speciesType.getType(), node_id, count, speciesType.getAvgBiomass(), speciesType.getAvgBiomass() * count, group_type);
View Full Code Here

    public SpeciesZoneType createSpecies(int node_id) {
        SpeciesZoneType szt = null;
        SpeciesType speciesType = GameServer.getInstance().getSpeciesTypeByNodeID(node_id);

        SpeciesTypeEnum group_type = SpeciesTypeEnum.ANIMAL;
        if (speciesType.getGroupType() == Constants.ORGANISM_TYPE_PLANT) {
            group_type = SpeciesTypeEnum.PLANT;
        }

        szt = new SpeciesZoneType(speciesType.getSpeciesName(), node_id, 1, speciesType.getAvgBiomass(), speciesType.getAvgBiomass(), group_type);
View Full Code Here

TOP

Related Classes of simulationEngine.SpeciesZoneType.SpeciesTypeEnum

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.