|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.SimModelImpl
uchicago.src.sim.engine.SimpleModel
uchicago.src.repastdemos.regression.RegressionOfficeModel
public class RegressionOfficeModel
A model illustrating the use of the openforecast regression library.
| Field Summary | |
|---|---|
protected Office |
office
|
| Fields inherited from class uchicago.src.sim.engine.SimpleModel |
|---|
agentList, autoStep, isGui, name, params, schedule, seed, shuffle, startAt |
| Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
|---|
descriptors, modelManipulator |
| Constructor Summary | |
|---|---|
RegressionOfficeModel()
|
|
| Method Summary | |
|---|---|
void |
begin()
Begins a simulation run. |
protected void |
buildDisplay()
This builds the display surface for the office |
protected void |
buildGraphs()
This builds the error graphs. |
int |
getEmployeeCount()
|
java.lang.String[] |
getInitParam()
Gets the names of the initial model parameters to set. |
int |
getLengthOfHistory()
|
java.lang.String |
getName()
Gets the name of this model. |
int |
getOfficeHeight()
|
int |
getOfficeWidth()
|
double |
getPolynomimalCoefficient1()
|
double |
getPolynomimalCoefficient2()
|
double |
getPolynomimalCoefficient3()
|
static void |
main(java.lang.String[] args)
|
protected void |
postStep()
|
protected void |
preStep()
|
void |
setEmployeeCount(int employeeCount)
|
void |
setLengthOfHistory(int lengthOfHistory)
|
void |
setOfficeHeight(int officeHeight)
|
void |
setOfficeWidth(int officeWidth)
|
void |
setPolynomimalCoefficient1(double polynomimalCoefficient1)
|
void |
setPolynomimalCoefficient2(double polynomimalCoefficient2)
|
void |
setPolynomimalCoefficient3(double polynomimalCoefficient3)
|
void |
setup()
Sets up the model for the next run, clears out all the old employees and the old displays |
protected void |
step()
|
| Methods inherited from class uchicago.src.sim.engine.SimpleModel |
|---|
atEnd, atPause, buildModel, buildSchedule, getNextDoubleFromTo, getNextIntFromTo, getSchedule, run, runAutoStep, setRngSeed, setStoppingTime, setStoppingTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Office office
| Constructor Detail |
|---|
public RegressionOfficeModel()
| Method Detail |
|---|
public java.lang.String[] getInitParam()
SimModel
getInitParam in interface SimModelgetInitParam in class SimpleModelpublic void begin()
SimModel
begin in interface SimModelbegin in class SimpleModelprotected void buildDisplay()
protected void buildGraphs()
public void setup()
setup in interface SimModelsetup in class SimpleModelprotected void preStep()
preStep in class SimpleModelprotected void step()
step in class SimpleModelprotected void postStep()
postStep in class SimpleModelpublic java.lang.String getName()
SimpleModel
getName in interface SimModelgetName in class SimpleModelpublic int getEmployeeCount()
public void setEmployeeCount(int employeeCount)
employeeCount - The number of employees in the office.public int getOfficeHeight()
public void setOfficeHeight(int officeHeight)
officeHeight - the officeHeightpublic int getOfficeWidth()
public void setOfficeWidth(int officeWidth)
officeWidth - the officeWidthpublic void setPolynomimalCoefficient1(double polynomimalCoefficient1)
polynomimalCoefficient1 - The polynomimalCoefficient1 to set.public double getPolynomimalCoefficient1()
public void setPolynomimalCoefficient2(double polynomimalCoefficient2)
polynomimalCoefficient2 - The polynomimalCoefficient2 to set.public double getPolynomimalCoefficient2()
public void setPolynomimalCoefficient3(double polynomimalCoefficient3)
polynomimalCoefficient3 - The polynomimalCoefficient3 to set.public double getPolynomimalCoefficient3()
public void setLengthOfHistory(int lengthOfHistory)
lengthOfHistory - The lengthOfHistory to set.public int getLengthOfHistory()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||