barsuift.simLife.environment
Class BasicEnvironment

java.lang.Object
  extended by barsuift.simLife.environment.BasicEnvironment
All Implemented Interfaces:
Environment

public class BasicEnvironment
extends java.lang.Object
implements Environment


Constructor Summary
BasicEnvironment(EnvironmentState state)
          Creates the environement with given state
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 EnvironmentState getState()
           
 Sun getSun()
           
 int hashCode()
           
 java.lang.String toString()
          Return a String representation of the Environment, in the form Environment [ sun=Sun [luminosity=xx.00%] ]
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.