public static class SwitchSkeleton.Turn extends CommandLineParser
AbstractRemoteSwitch.switchOn(long), AbstractRemoteSwitch.switchOff(), and the
#switchOnTimeout methods. Uses a command line parser for access.CommandLineParser.Template, CommandLineParser.Test| Modifier and Type | Field and Description |
|---|---|
(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<String,String> |
USE
The detailed user of the switches.
|
HELPSWITCHES| Modifier | Constructor and Description |
|---|---|
protected |
Turn()
Constructs the command line parser instance used with this class.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addHelpSwitches, getArguments, getCallerName, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasHelpSwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usagestatic SwitchSkeleton.Turn access
static final String SWITCHES
static final String TIME
static final String FOOT
protected Turn()
boolean process(String[] arg) throws ParseException
ParseExceptionpublic static void main(String[] arg) throws ParseException
ParseException