public class Root extends Location implements LocationCommandInterface, AutoCloseable
Modifier and Type | Field and Description |
---|---|
static HashMap<TreeNode<String>,Command> |
commandTreeToCommandMap |
static TreeNode<String> |
locationCommandTree |
Modifier and Type | Method and Description |
---|---|
static void |
addCommandToTree(Command command) |
void |
addServerLocation(ServerLocation server) |
void |
close() |
void |
displayHelp()
Command help description.
|
int |
execute(List<String> args)
Executes this command.
|
ServerLocation |
getChild(String location) |
Location |
getChildLocation(String locationName) |
List<ServerLocation> |
getServerLocations() |
void |
populateChildren() |
void |
refresh() |
void |
removeServerLocation(ServerLocation server) |
String |
toString() |
addCommandToTree, execute, getAlpaca, getBroadWorksServer, getChildren, getCommandTree, getCommandTreeMap, getConnection, getName, getParent, getPwd, getRootLocationCommandMap, getRootLocationCommandTree, isSystem, isValid, println, pwd, reset, setChildren, setCommandMap, setCommands, setConnection, setIsValid, setName, setParent, setPwd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getCommandTree, getCommandTreeMap, getName, getParent, getPwd, isSystem, pwd, reset
public Root(Alpaca alpaca) throws AlpacaException
AlpacaException
public static void addCommandToTree(Command command)
public void displayHelp()
LocationCommandInterface
displayHelp
in interface LocationCommandInterface
displayHelp
in class Location
public int execute(List<String> args) throws AlpacaException
LocationCommandInterface
execute
in interface LocationCommandInterface
execute
in class Location
AlpacaException
public Location getChildLocation(String locationName)
getChildLocation
in class Location
public void addServerLocation(ServerLocation server)
public void removeServerLocation(ServerLocation server)
public List<ServerLocation> getServerLocations()
public void populateChildren()
populateChildren
in interface LocationCommandInterface
public ServerLocation getChild(String location)
public void close()
close
in interface AutoCloseable
Copyright © 2017 ECG. All rights reserved.