<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2) on Sat Apr 10 09:21:14 GMT-07:00 2004 -->
<TITLE>
CarryDropModel
</TITLE>
<META NAME="keywords" CONTENT="demo.CarryDropModel class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="CarryDropModel";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CarryDropModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../demo/CarryDropAgent.html" title="class in demo"><B>PREV CLASS</B></A>
<A HREF="../demo/CarryDropSpace.html" title="class in demo"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="CarryDropModel.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
demo</FONT>
<BR>
Class CarryDropModel</H2>
<PRE>
java.lang.Object
<IMG SRC="../resources/inherit.gif" ALT="extended by">uchicago.src.sim.engine.SimModelImpl
<IMG SRC="../resources/inherit.gif" ALT="extended by"><B>demo.CarryDropModel</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>uchicago.src.reflector.DescriptorContainer, uchicago.src.sim.engine.SimEventProducer, uchicago.src.sim.engine.SimModel</DD>
</DL>
<HR>
<DL>
<DT>public class <B>CarryDropModel</B><DT>extends uchicago.src.sim.engine.SimModelImpl</DL>
<P>
CarryDropModel is a RePast model that demonstrates
the basics of building a RePast model.
The model's dynamics are straightforward: a space
is populated with agents. Money is distributed on
the landscape; agents move and pick up money.
When agents collide the agent that initiated the
collision gives one unit of money to the other agent.
Agents have limited lifespans and when they die their
money is distributed randomly across the landscape.
<P>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>John T. Murphy<br>
University of Arizona, Department of Anthropology<br>
Arizona State University, Center for Environmental Studies</DD>
</DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#CarryDropModel()">CarryDropModel</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#begin()">begin</A></B>()</CODE>
<BR>
Initialize the model by building the separate elements that make
up the model</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#buildDisplay()">buildDisplay</A></B>()</CODE>
<BR>
Build the display elements for this model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#buildModel()">buildModel</A></B>()</CODE>
<BR>
Initialize the basic model by creating the space
and populating it with money and agents.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#buildSchedule()">buildSchedule</A></B>()</CODE>
<BR>
Create the schedule object(s) that will be executed
during the running of the model</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#getAgentMaxLifespan()">getAgentMaxLifespan</A></B>()</CODE>
<BR>
Get the maximum value for an agent's lifespan</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../demo/CarryDropModel.html#getAgentMinLifespan()">getAgentMinLifespan</A></B>()</CODE>
<BR>
Get the minimum value for an agent's lifespan</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbs
没有合适的资源?快使用搜索试试~ 我知道了~
repast完整教程和实例
共72个文件
htm:38个
html:28个
css:2个
5星 · 超过95%的资源 需积分: 46 85 下载量 137 浏览量
2011-11-30
21:06:40
上传
评论 2
收藏 303KB ZIP 举报
温馨提示
repast英文原版教程,以及实例。写的易懂并且详尽,比翻译出来的要好懂,也更容易学习。不可错过喔
资源推荐
资源详情
资源评论
收起资源包目录
H2R.zip (72个子文件)
H2R
HowTo24.htm 19KB
java.htm 15KB
HowTo05.htm 4KB
HowTo07.htm 4KB
HowTo15.htm 11KB
HowTo18.htm 11KB
HowTo31.htm 27KB
HowTo09.htm 6KB
HowTo12.htm 10KB
HowTo32.htm 2KB
HowTo06.htm 4KB
HowTo26.htm 19KB
HowTo01.htm 2KB
HowTo13.htm 9KB
eclipse.htm 6KB
HowTo00.htm 4KB
HowTo17.htm 13KB
HowTo.css 266B
HowTo16.htm 10KB
H2RCode.zip 255KB
HowTo25.htm 18KB
Code.htm 24KB
HowTo21.htm 18KB
HowTo20.htm 15KB
HowTo04.htm 4KB
HowTo11.htm 7KB
HowTo19.htm 14KB
MainToolbar.bmp 101KB
HowTo02.htm 15KB
HowTo10.htm 7KB
HowTo29.htm 22KB
HowTo23.htm 17KB
HowTo08.htm 8KB
template.htm 281B
main.htm 1KB
HowTo22.htm 17KB
JavaDoc
constant-values.html 5KB
index.html 816B
overview-tree.html 5KB
allclasses-noframe.html 838B
index-files
index-7.html 6KB
index-2.html 6KB
index-9.html 8KB
index-10.html 6KB
index-3.html 7KB
index-6.html 6KB
index-5.html 10KB
index-1.html 6KB
index-4.html 6KB
index-8.html 6KB
deprecated-list.html 5KB
demo
package-tree.html 5KB
CarryDropAgent.html 17KB
package-use.html 6KB
package-frame.html 1KB
CarryDropSpace.html 19KB
package-summary.html 6KB
CarryDropModel.html 24KB
class-use
CarryDropAgent.html 7KB
CarryDropSpace.html 6KB
CarryDropModel.html 5KB
help-doc.html 8KB
package-list 6B
allclasses-frame.html 898B
packages.html 703B
resources
inherit.gif 57B
stylesheet.css 1KB
HowTo28.htm 21KB
HowTo03.htm 4KB
HowTo27.htm 21KB
HowTo14.htm 8KB
HowTo30.htm 26KB
共 72 条
- 1
miqihui510
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页