|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.item.jt.system.Frontend
public class Frontend
Provides a frontend to the application for the user. Can be extended to implement new types of UI as they are written (using inheritance and modifying the getInstance() function).
Field Summary | |
---|---|
static boolean |
debug
|
static int |
UI_GUI
|
static int |
UI_SHELL
|
static boolean |
verbose
|
Constructor Summary | |
---|---|
protected |
Frontend()
Private constructor. |
Method Summary | |
---|---|
void |
displayAnalysisToolsResult(ArrayList<DynamicAnalysisResult> results)
|
void |
displayError(String message)
Display errors regarding the system. |
void |
displayInfo(String message)
Display information regarding the system. |
void |
displayScanResults(ArrayList<ScanResult> results)
Displays the result of a scan to the user. |
void |
displayUpdateResults(ArrayList<AVUpdateResult> results)
Display the result of a update operation to the user. |
void |
displayWarning(String message)
Display warnings regarding the system. |
static Frontend |
getInstance()
Getter for the Frontend singleton. |
static void |
main(String[] args)
Parses input parameters and starts operation appropriately. |
void |
sleep(int sleepSec)
This method will sleep for a given amount of seconds, and update the UI every second. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UI_SHELL
public static final int UI_GUI
public static boolean debug
public static boolean verbose
Constructor Detail |
---|
protected Frontend()
Method Detail |
---|
public static Frontend getInstance()
public static void main(String[] args)
args
- command line arguments.public void displayUpdateResults(ArrayList<AVUpdateResult> results)
results
- a list of AV engine update results.public void displayScanResults(ArrayList<ScanResult> results)
results
- list of scan results to be presented.public void displayAnalysisToolsResult(ArrayList<DynamicAnalysisResult> results)
public void displayInfo(String message)
message
- the message to be displayed.public void displayWarning(String message)
message
- the message to be displayed.public void displayError(String message)
message
- the message to be displayed.public void sleep(int sleepSec)
sleepSec
- The number of seconds to sleep in total.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |