cad.simcad.worldsimulator.world
Class DefaultGenome

java.lang.Object
  |
  +--cad.simcad.worldsimulator.world.DefaultGenome
All Implemented Interfaces:
Genomable, java.io.Serializable

public class DefaultGenome
extends java.lang.Object
implements Genomable, java.io.Serializable

Default genome

Author:
Charles-Philip Bentley
See Also:
Serialized Form

Constructor Summary
DefaultGenome()
          Creates a new instance of DefaultGenome
 
Method Summary
 AgeContext getAgeContext()
          Returns the age id for this Genomable
 int getId()
          Returns the id for this Genomable
 java.lang.String getName()
          Returns the name for this Genomable
 void setAgeContext(AgeContext ac)
          Set the AgeContext for this Genomable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGenome

public DefaultGenome()
Creates a new instance of DefaultGenome

Method Detail

getAgeContext

public AgeContext getAgeContext()
Returns the age id for this Genomable

Specified by:
getAgeContext in interface Genomable
Pre:
An initialized Genomable object
Returns:
an AgeContext object
Post:
The AgeContext of this Genomable object is returned

getId

public int getId()
Returns the id for this Genomable

Specified by:
getId in interface Genomable
Pre:
-
Returns:
a int, the Id of that Genomable, as an integer
Post:
-

getName

public java.lang.String getName()
Returns the name for this Genomable

Specified by:
getName in interface Genomable
Pre:
-
Returns:
a String
Post:
-

setAgeContext

public void setAgeContext(AgeContext ac)
Set the AgeContext for this Genomable

Specified by:
setAgeContext in interface Genomable
Parameters:
ac - the new AgeContext
Pre:
-
Post:
The Owner own AgeContext field is updated

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be