public class ServerLocation extends Location implements LocationCommandInterface, BroadWorksServerLocationInterface
Modifier and Type | Field and Description |
---|---|
static HashMap<TreeNode<String>,Command> |
commandTreeToCommandMap |
static TreeNode<String> |
locationCommandTree |
Constructor and Description |
---|
ServerLocation(Root root,
BroadWorksConnection connection) |
Modifier and Type | Method and Description |
---|---|
static void |
addCommandToTree(Command command) |
void |
displayHelp()
Command help description.
|
boolean |
equals(Object obj) |
int |
execute(List<String> args)
Executes this command.
|
String |
getName()
Command Name
|
void |
handleServerDisconnectEvent(ServerDisconnectEvent event) |
int |
hashCode() |
void |
populateChildren()
Populate the Children ID list
|
String |
toString() |
addCommandToTree, execute, getAlpaca, getBroadWorksServer, getChildren, getCommandTree, getCommandTreeMap, getConnection, getParent, getPwd, getRootLocationCommandMap, getRootLocationCommandTree, isSystem, isValid, println, pwd, reset, setChildren, setCommandMap, setCommands, setConnection, setIsValid, setName, setParent, setPwd
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildren, getCommandTree, getCommandTreeMap, getParent, getPwd, isSystem, pwd, reset
getAlpaca
public ServerLocation(Root root, BroadWorksConnection connection)
public static void addCommandToTree(Command command)
public String getName()
LocationCommandInterface
getName
in interface LocationCommandInterface
getName
in class Location
public void displayHelp()
LocationCommandInterface
displayHelp
in interface LocationCommandInterface
displayHelp
in class Location
public int execute(List<String> args) throws co.ecg.alpaca.toolkit.exception.AlpacaException
LocationCommandInterface
execute
in interface LocationCommandInterface
execute
in class Location
co.ecg.alpaca.toolkit.exception.AlpacaException
public void populateChildren()
BroadWorksServerLocationInterface
populateChildren
in interface BroadWorksServerLocationInterface
populateChildren
in interface LocationCommandInterface
public void handleServerDisconnectEvent(ServerDisconnectEvent event)
Copyright © 2016. All rights reserved.