barsuift.simLife.environment
Class BasicEnvironment
java.lang.Object
barsuift.simLife.environment.BasicEnvironment
- All Implemented Interfaces:
- Environment
public class BasicEnvironment
- extends java.lang.Object
- implements Environment
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BasicEnvironment
public BasicEnvironment(EnvironmentState state)
- Creates the environement with given state
- Parameters:
state - the environment state
- Throws:
java.lang.IllegalArgumentException - if the given sun state is null
getSun
public Sun getSun()
- Specified by:
getSun in interface Environment
getState
public EnvironmentState getState()
- Specified by:
getState in interface Environment
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Return a String representation of the Environment, in the form
Environment [
sun=Sun [luminosity=xx.00%]
]
- Overrides:
toString in class java.lang.Object
- Returns:
Copyright © 2010. All Rights Reserved.