第一范文网 - 专业文章范例文档资料分享平台

生命游戏-JAVA语言代码-细胞自动机-毕业论文

来源:用户分享 时间:2025/5/15 18:45:12 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

浙江理工大学本科毕业设计(论文)

public int getCondition() { }

public void setCondition(int condition) { }

public int getReproduceState() { }

public void setReproduceState(int reproduceState) { }

public int getX() { }

public void setX(int x) { }

public int getY() { }

31

}

public double getAdulthoodAge() { }

public void setAdulthoodAge(int adulthoodAge) { }

this.adulthoodAge = adulthoodAge; return adulthoodAge;

return condition;

this.condition = condition;

return reproduceState;

this.reproduceState = reproduceState;

return x;

this.x = x;

return y;

生命游戏的计算机模拟以及参数对运行结果的分析

}

public void setY(int y) { }

public double getFoodCondition() { }

public void setFoodCondition(double foodCondition) { }

public double getReproduceblank() { }

public void setReproduceblank(double reproduceblank) { }

this.reproduceblank = reproduceblank; return reproduceblank;

this.foodCondition = foodCondition; return foodCondition; this.y = y;

2.地形单位类

package com.apei.lifegame.model.condition;

import java.util.ArrayList; import java.util.Collections; import java.util.List;

import com.apei.lifegame.model.organism.Organism;

public class GroundUnit {

private int x = 0; private int y = 0;

private int groundType = 0;

32

浙江理工大学本科毕业设计(论文)

public void get(int num) {

33

private int groundLevel = 0;

private double percent;

private List organisms = new ArrayList();

private List tempKillList = new ArrayList();

public GroundUnit() { }

super();

public GroundUnit(String[] str) { }

lineToUnit(str);

public GroundUnit(int x, int y, int groundType, int groundLevel) { }

super(); this.x = x; this.y = y;

this.groundType = groundType; this.groundLevel = groundLevel;

public void add(Organism organism) { }

organisms.add(organism);

生命游戏的计算机模拟以及参数对运行结果的分析

public double getSumPlantNeed() {

double sumPlant = 0;

for (Organism organism : organisms) { }

// System.out.println(\return sumPlant;

34

}

organisms.get(num);

// 获得总竞争力

public double getSumCompetitiveness() { }

double sumC = 0;

for (Organism organism : organisms) { }

return sumC;

sumC += organism.getCompetitivenessByGround(this);

public double getSumPlant() { }

if (groundType == 1) {

return percent;

} else if (groundType == 2) {

return percent + 1.0;

} else { }

return 0;

sumPlant += organism.getPlantNeeded();

生命游戏-JAVA语言代码-细胞自动机-毕业论文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c1q08w7s8491cf865cb4r_10.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top