|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
stella.sensor.WeatherStation.Manage
public static final class WeatherStation.Manage
Allows rmi-access to the add/remove sensor properties of the weather station. Use this class without arguments to get a usage message.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
(package private) static WeatherStation.Manage |
access
The access instance of this class. |
private static String |
DEFBINDNAME
The default bindname used for rmi-access to the weather station. |
(package private) static String |
DUMP
The switch for dumping all sensor names to system.out. |
(package private) static String |
FOOT
A footer message. |
(package private) static String |
SWITCHES
The switches for removing and adding a sensor. |
(package private) static Map |
USE
The detailed user of the switches. |
| Constructor Summary | |
|---|---|
protected |
WeatherStation.Manage()
Constructs the command line parser instance used with this class. |
| Method Summary | |
|---|---|
static void |
main(String[] arg)
The entry point for the adding/removing sensors from the weather station. |
(package private) boolean |
process(String[] arg)
Processes the command line. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String DEFBINDNAME
static WeatherStation.Manage access
static final String SWITCHES
static final String DUMP
static final Map USE
static final String FOOT
| Constructor Detail |
|---|
protected WeatherStation.Manage()
| Method Detail |
|---|
boolean process(String[] arg)
throws ParseException
DEFBINDNAME. Note that removing a sensor from the weather
station does not kill the sensor itself, so it will continue
to spread data, until its binding is invalidated (i.e. replaced).
ParseException
public static void main(String[] arg)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||