public class Alpaca extends Object
Constructor and Description |
---|
Alpaca() |
Modifier and Type | Method and Description |
---|---|
AlpacaConsole |
getConsole() |
Location |
getCurrentLocation() |
PrintStream |
getPrintStreamOut() |
Root |
getRoot() |
void |
initialize()
This method is used to initialize an Alpaca Object
|
void |
initializeForDaemon()
This method is used to initialize Alpaca for non-interactive mode.
|
boolean |
isDaemonized() |
void |
logevent(DeviceMonitorEvent event) |
int |
parseCommand(List<String> commands)
Handles command strings by parsing them and designating the correct
designation
|
void |
println(String s)
Prints a string followed by a newline to the console
|
void |
refresh()
Refreshes the tab completion based on the current location
|
void |
runCommandLineInterface()
This method initializes Alpaca and runs the Command Line Interface.
|
void |
setAlpacaConsole(AlpacaConsole console) |
void |
setAlpacaOut(PrintStream out) |
void |
setCurrentLocation(Location currentLocation) |
void |
setRoot(Root root) |
public Root getRoot()
public void setRoot(Root root)
public Location getCurrentLocation()
public void setCurrentLocation(Location currentLocation)
public PrintStream getPrintStreamOut()
public boolean isDaemonized()
public void logevent(DeviceMonitorEvent event)
public AlpacaConsole getConsole()
public void initialize()
co.ecg.alpaca.toolkit.exception.AlpacaException
public void initializeForDaemon()
co.ecg.alpaca.toolkit.exception.AlpacaException
public void setAlpacaConsole(AlpacaConsole console)
public void setAlpacaOut(PrintStream out)
public int parseCommand(List<String> commands) throws co.ecg.alpaca.toolkit.exception.AlpacaException, IOException
commands
- co.ecg.alpaca.toolkit.exception.AlpacaException
IOException
public void println(String s)
public void runCommandLineInterface()
public void refresh() throws co.ecg.alpaca.toolkit.exception.AlpacaException
co.ecg.alpaca.toolkit.exception.AlpacaException
Copyright © 2016. All rights reserved.