Class Country
java.lang.Object
|
+--Country
- Direct Known Subclasses:
- SimCountry
- public class Country
- extends java.lang.Object
This objects keeps the state of Country objects for HelloWorld
simulation.
Constructor Summary |
Country()
|
Country(int _ObjectID)
|
Country(java.lang.String _name,
double _initialPopulation,
int _ObjectID)
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
myPopulation
protected double myPopulation
myCountryName
protected java.lang.String myCountryName
ObjectID
protected int ObjectID
currentTime
protected double currentTime
Country
public Country()
Country
public Country(int _ObjectID)
Country
public Country(java.lang.String _name,
double _initialPopulation,
int _ObjectID)
setName
public void setName(java.lang.String _newName)
setPopulation
public void setPopulation(double _population)
setObjectID
public void setObjectID(int _ObjectID)
setCurrentTime
public void setCurrentTime(double _time)
getPopulation
public double getPopulation()
getName
public java.lang.String getName()
getObjectID
public int getObjectID()
getCurrentTime
public double getCurrentTime()