stella.sensor
Class AbstractToggle

java.lang.Object
  extended by stella.sensor.AbstractToggle

public abstract class AbstractToggle
extends Object

An abstract implementation of the Toggling interface. To make construction out of a String more convenient, a static createToggle(java.lang.String, java.lang.String) method is given.


Constructor Summary
AbstractToggle()
           
 
Method Summary
static Toggling createToggle(String classname, String arg)
          Constructs a new Toggling instance for use in WeatherSensors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractToggle

public AbstractToggle()
Method Detail

createToggle

public static final Toggling createToggle(String classname,
                                          String arg)
Constructs a new Toggling instance for use in WeatherSensors. The toggling class must support construction with a single String argument.

Returns:
A new Toggling instance.