|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
stella.parameter.SwitchSkeleton.Turn
public static class SwitchSkeleton.Turn
Allows rmi-access to the AbstractRemoteSwitch.switchOn(long), AbstractRemoteSwitch.switchOff(), and the
#switchOnTimeout methods. Uses a command line parser for
access.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
(package private) static SwitchSkeleton.Turn |
access
The access instance of this class. |
(package private) static String |
FOOT
A footer message. |
(package private) static String |
SWITCHES
The switches for light on/off. |
(package private) static String |
TIME
The switch for turning the light on for a certain maximum time. |
(package private) static Map |
USE
The detailed user of the switches. |
| Constructor Summary | |
|---|---|
protected |
SwitchSkeleton.Turn()
Constructs the command line parser instance used with this class. |
| Method Summary | |
|---|---|
static void |
main(String[] arg)
The entry point for turning the light on or off. |
(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 |
|---|
static SwitchSkeleton.Turn access
static final String SWITCHES
static final String TIME
static final Map USE
static final String FOOT
| Constructor Detail |
|---|
protected SwitchSkeleton.Turn()
| Method Detail |
|---|
boolean process(String[] arg)
throws ParseException
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 | |||||||||