barsuift.simLife.environment
Class BasicEnvironment

java.lang.Object
  extended by barsuift.simLife.environment.BasicEnvironment
All Implemented Interfaces:
Environment, Persistent<EnvironmentState>

public class BasicEnvironment
extends java.lang.Object
implements Environment


Constructor Summary
BasicEnvironment(EnvironmentState state)
          Creates the environment with given state
 
Method Summary
 EnvironmentState getState()
           
 Sun getSun()
           
 void synchronize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicEnvironment

public BasicEnvironment(EnvironmentState state)
Creates the environment 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 Persistent<EnvironmentState>

synchronize

public void synchronize()
Specified by:
synchronize in interface Persistent<EnvironmentState>


Copyright © 2010. All Rights Reserved.