亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wealthspace.java

?? 創新系統仿真模型代碼
?? JAVA
字號:
/*$$ * packages uchicago.src.* * Copyright (c) 1999, Trustees of the University of Chicago * All rights reserved. * * Redistribution and use in source and binary forms, with  * or without modification, are permitted provided that the following  * conditions are met: * *	 Redistributions of source code must retain the above copyright notice, *	 this list of conditions and the following disclaimer. * *	 Redistributions in binary form must reproduce the above copyright notice, *	 this list of conditions and the following disclaimer in the documentation *	 and/or other materials provided with the distribution. * *	 Neither the name of the University of Chicago nor the names of its *   contributors may be used to endorse or promote products derived from *   this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Nick Collier * nick@src.uchicago.edu * * packages cern.jet.random.* * Copyright (c) 1999 CERN - European Laboratory for Particle * Physics. Permission to use, copy, modify, distribute and sell this * software and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that both that copyright notice and this permission notice appear in * supporting documentation. CERN makes no representations about the  * suitability of this software for any purpose. It is provided "as is"  * without expressed or implied warranty.  * * Wolfgang Hoschek * wolfgang.hoschek@cern.ch *$$*/package tom.edu.csustan.astarte;import java.awt.Dimension;import uchicago.src.sim.space.*;import uchicago.src.collection.BaseMatrix;public class WealthSpace {  // the Wealth space is composed of two tori which track the maximum  // amount of wealth, and the current value at each x,y coordinate.  private Object2DTorus currentWealth;  private Object2DTorus maxWealth;  // default wealth grow rate and the default maximum wealth//  private int wealthGrowRate = 1;  private int wealthGrowRate = 0;//  private int globalMaxWealth = 4;  private int globalMaxWealth = 0;  private Dimension size;  public WealthSpace(String wealthFile) {    // constructs the maximum wealth torus using the values in the    // pgm file, wealthspace.pgm.    // we get this as a stream so can load it from a jar file.    // if we didn't need to get this from a jar we could just pass    // the file name to Object2DTorus.    java.io.InputStream stream = getClass().getResourceAsStream(wealthFile);        maxWealth = new Object2DTorus(stream, Object2DGrid.PGM_ASCII);    currentWealth = new Object2DTorus(maxWealth.getSizeX(), maxWealth.getSizeY());    // sets the current wealth to the maximum wealth.    BaseMatrix m = maxWealth.getMatrix();    for (int i = 0; i < m.getNumCols(); i++) {      for (int j = 0; j < m.getNumRows(); j++) {        Integer intg = (Integer)m.get(i, j);        currentWealth.putObjectAt(i, j, new Integer(intg.intValue()));      }    }    size = maxWealth.getSize();    //System.out.println(size.width + ", " + size.height);  }  public Dimension getSize() {    return size;  }  public Object2DGrid getCurrentWealth() {    return currentWealth;  }  // The actual implementation of growback rule G, pg 182 (Appendix B).  public void updateWealth() {    int wealthAtSpot;    int maxWealthAtSpot;    for (int i = 0; i < size.width; i++) {      for (int j = 0; j < size.height; j++) {        wealthAtSpot = ((Integer)currentWealth.getObjectAt(i, j)).intValue();        maxWealthAtSpot = ((Integer)maxWealth.getObjectAt(i, j)).intValue();        if (wealthGrowRate == -1) {          currentWealth.putObjectAt(i, j, new Integer(maxWealthAtSpot));        } else {          if (wealthAtSpot != maxWealthAtSpot) {            if (wealthAtSpot + wealthGrowRate <= maxWealthAtSpot) {              currentWealth.putObjectAt(i, j, new Integer(wealthAtSpot + wealthGrowRate));            } else {              currentWealth.putObjectAt(i, j, new Integer(maxWealthAtSpot));            }          }        }      }    }  }  // takes all the wealth at this coordinate, leaving no wealth.  public int takeWealthAt(int x, int y) {    Integer i = (Integer)currentWealth.getObjectAt(x, y);    currentWealth.putObjectAt(x, y, new Integer(0));    return i.intValue();  }  // gets the amount of wealth at this x,y coordinate  public int getWealthAt(int x, int y) {    Integer i = (Integer)currentWealth.getObjectAt(x, y);    return i.intValue();  }  public int getXSize() {    return size.width;  }  public int getYSize() {    return size.height;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色八戒一区二区三区| 欧美一区二区三区免费在线看| 色综合亚洲欧洲| 日韩欧美中文字幕公布| 亚洲精品一区二区三区四区高清| 欧美国产日产图区| 狠狠色丁香久久婷婷综| 在线欧美日韩国产| 欧美激情一区二区三区不卡| 亚洲一区二三区| 极品瑜伽女神91| 欧美一级片在线观看| 中文字幕亚洲视频| 成人av中文字幕| 国产精品久久久久久久久免费桃花 | 91国偷自产一区二区三区成为亚洲经典 | 成人午夜在线免费| 国产欧美一区二区精品性色超碰 | 国产亚洲欧美日韩在线一区| 天使萌一区二区三区免费观看| 欧美一二三四区在线| 国产在线视频一区二区| 国产成人精品在线看| 精品va天堂亚洲国产| 国产在线精品不卡| 久久久久久免费毛片精品| 成人综合婷婷国产精品久久| 亚洲女人的天堂| 在线视频一区二区三区| 男女性色大片免费观看一区二区 | 麻豆久久一区二区| 久久久综合精品| 91一区二区三区在线观看| 亚洲另类春色国产| 欧美成人艳星乳罩| jizzjizzjizz欧美| 亚洲永久免费视频| 国产亚洲制服色| 91免费观看视频| 美女网站在线免费欧美精品| 国产精品丝袜在线| 日韩精品一区二区在线| 国产激情一区二区三区四区 | 日韩一级在线观看| 99re热视频这里只精品| 久久se这里有精品| 洋洋成人永久网站入口| 欧美不卡一区二区| 欧美色图激情小说| www.亚洲精品| 国产在线精品一区二区不卡了| 亚洲国产一区在线观看| 国产精品伦理一区二区| 精品久久久久久亚洲综合网| 欧美一区二区三区免费在线看 | 国产精品1024| 久久99国产精品久久| 五月天中文字幕一区二区| 亚洲图片欧美激情| 国产精品青草久久| 国产欧美日韩在线观看| 精品国产成人在线影院| 欧美系列亚洲系列| 在线一区二区三区做爰视频网站| www.一区二区| 91亚洲精品乱码久久久久久蜜桃| 国产suv一区二区三区88区| 九色|91porny| 国产成人日日夜夜| 国产不卡在线视频| 一本色道a无线码一区v| 91看片淫黄大片一级在线观看| 床上的激情91.| 色94色欧美sute亚洲线路一久| 欧美精三区欧美精三区| 不卡av在线免费观看| 色综合欧美在线| 欧美午夜寂寞影院| 久久免费美女视频| 亚洲男人电影天堂| 一区二区三区中文字幕| 蜜桃精品视频在线| 激情另类小说区图片区视频区| 国产精品一区在线观看乱码 | 2020国产精品| 日韩一区日韩二区| 婷婷国产v国产偷v亚洲高清| 激情偷乱视频一区二区三区| 国产成人精品免费在线| 欧美日韩你懂的| 欧美成人精品福利| 自拍偷自拍亚洲精品播放| 一区二区三区日本| 国产成人自拍高清视频在线免费播放| 波多野结衣中文字幕一区 | 欧美性色综合网| 自拍av一区二区三区| 精品一二三四区| 欧美日韩免费在线视频| 久久久美女艺术照精彩视频福利播放| 一区二区三区日韩在线观看| 国产黄色91视频| 欧美tickling挠脚心丨vk| 一区二区三区久久| 一本一道综合狠狠老| 日本一区二区三区四区在线视频| 午夜精品久久久久影视| 欧美在线一区二区| 亚洲丝袜精品丝袜在线| 一本色道综合亚洲| 一区二区三区高清不卡| 色狠狠一区二区| 亚洲妇女屁股眼交7| 欧美日韩在线不卡| 日韩精品欧美成人高清一区二区| 日本高清无吗v一区| 国产精品高潮呻吟| 成人做爰69片免费看网站| 国产精品免费视频网站| 91丨国产丨九色丨pron| 亚洲人亚洲人成电影网站色| 成人h动漫精品| 亚洲www啪成人一区二区麻豆 | 麻豆精品在线看| 亚洲精品在线免费播放| www.日韩在线| 亚洲国产精品一区二区www| 欧美一级夜夜爽| 成人黄色大片在线观看| 一区二区在线观看免费| 欧美视频精品在线观看| 韩国av一区二区三区四区| 国产精品久久久久一区| 色婷婷久久综合| 久草精品在线观看| 亚洲色图20p| 欧美精品一区二区久久婷婷| 99麻豆久久久国产精品免费优播| 亚洲一区电影777| 26uuu欧美日本| 欧美日韩在线精品一区二区三区激情| 奇米影视在线99精品| 国产精品国产三级国产| 欧美电影免费观看高清完整版在线| 99精品黄色片免费大全| 精品一区二区三区的国产在线播放| 国产精品久久久久久亚洲毛片| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品久久久久影院亚瑟 | 久久久久久日产精品| 欧美高清视频一二三区| 成人丝袜高跟foot| 日韩一区二区三区电影 | 国产成人午夜电影网| 一卡二卡欧美日韩| 中文字幕在线观看不卡视频| 日韩一区二区三区视频在线观看| 欧美性一级生活| 欧美性受xxxx| 91福利社在线观看| 色网站国产精品| 日本韩国一区二区三区视频| 不卡视频一二三四| 暴力调教一区二区三区| 国产精品99久久久久久有的能看| 另类小说综合欧美亚洲| 激情综合色综合久久| 精品一区二区在线看| 黄一区二区三区| 成人黄色小视频| 97成人超碰视| 91精品国产入口| 日韩一级免费观看| 久久精品视频网| 亚洲天堂福利av| 婷婷综合五月天| 国内精品久久久久影院薰衣草| 国产中文字幕一区| 成人激情黄色小说| 欧美性视频一区二区三区| 久久伊99综合婷婷久久伊| 日韩一区中文字幕| 久久99精品久久久久| 成人激情免费视频| 欧美福利一区二区| 国产精品三级在线观看| 视频一区二区三区在线| 国产99一区视频免费| 欧美影院一区二区| 久久综合99re88久久爱| 一区二区三区中文免费| 国产一区福利在线| 欧美三级电影网站| 国产精品看片你懂得 | 国产日韩欧美精品一区| 偷拍日韩校园综合在线| 色噜噜夜夜夜综合网| 国产欧美中文在线| 婷婷开心激情综合| 欧美三级资源在线|