public class ShelterAccess extends GenericAccess
ShelterControlling and
RemoteLight enhanced objects.
The command line arguments are scanned for recognized switches and
processed accordingly. Additionally to the functionality of the parent
class ShiftListener, this class supports the following switches:
stella.jview.JLaunchBox, this caster should be deregistered
before enabling automatic mode.stella.jview.JLaunchBox, requires additionally a registering at
the new caster.CommandLineParser.Template, CommandLineParser.Test| Modifier and Type | Field and Description |
|---|---|
static String |
ONESWITCH
The command line switche with an argument.
|
static String |
SWITCHES
The command line switches understood by this access class.
|
FOOT, ONESWITCHES, USE, ZEROSWITCHESHELPSWITCHES| Constructor and Description |
|---|
ShelterAccess()
Constructs a new building access instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] arg)
Access to a building-control object.
|
protected boolean |
processSwitches(Remote listener)
Process the command line switches found.
|
processFor, scanForaddHelpSwitches, getArguments, getCallerName, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasHelpSwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usagepublic static final String SWITCHES
public static final String ONESWITCH
public ShelterAccess()
protected boolean processSwitches(Remote listener) throws RemoteException
ShelterControlling and one of the switches
defined in
SWITCHES is given, the appropriate method of the listener
control is called. Note that the command line must be parsed before
calling this method.processSwitches in class GenericAccessRemoteExceptionpublic static void main(String[] arg) throws ParseException, RemoteException, NotBoundException, MalformedURLException