org.javasimon
Class SimonConfiguration

java.lang.Object
  extended by org.javasimon.SimonConfiguration

public final class SimonConfiguration
extends Object

Stores configuration for the particular Simon or the set of Simons. Currently it holds only the state of the Simon.

Author:
Richard "Virgo" Richter

Field Summary
private  SimonState state
           
 
Constructor Summary
SimonConfiguration(SimonState state)
          Creates SimonConfiguration item.
 
Method Summary
 SimonState getState()
          Returns Simon state for this configuration item.
 String toString()
          Returns configuration information about Simon (stat processor type and state) as a human readable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

state

private SimonState state
Constructor Detail

SimonConfiguration

SimonConfiguration(SimonState state)
Creates SimonConfiguration item.

Parameters:
state - prefered state - SimonManager sets ihnerit if null is specified here
Method Detail

getState

public SimonState getState()
Returns Simon state for this configuration item.

Returns:
configured Simon state or null if nothing was specified

toString

public String toString()
Returns configuration information about Simon (stat processor type and state) as a human readable string.

Overrides:
toString in class Object
Returns:
configuration information about Simon as string


Copyright © 2013. All Rights Reserved.