public class Application
extends java.lang.Object
Constructor and Description |
---|
Application() |
Modifier and Type | Method and Description |
---|---|
static void |
doBenchmark(boolean forceBenchmark)
Executes the Benchmark-Test of SciMark 2.0 to determine the ability of this system to deal with number crunching.
|
static java.lang.String |
getApplicationTitle()
This method return the current title of the application
|
static AwbConsole |
getConsole()
Returns the current console panel/element.
|
static DBConnection |
getDatabaseConnection()
Returns the database connection for the Application.
|
static DBConnection |
getDatabaseConnection(boolean renewDatabaseConnection)
Returns the database connection.
|
static GlobalInfo |
getGlobalInfo()
Returns the application-wide information system.
|
static org.agentgui.PlugInApplication |
getIApplication()
Returns the lApplication.
|
static Platform |
getJadePlatform()
Gets the jade platform.
|
static LogFileWriter |
getLogFileWriter()
Returns the current LogFileWriter of the application.
|
static MainWindow |
getMainWindow()
Gets the main window.
|
static Project |
getProjectFocused()
Returns the currently focused
Project . |
static ProjectsLoaded |
getProjectsLoaded()
Returns the instance/list of loaded projects .
|
static ShutdownThread |
getShutdownThread()
Returns the current
ShutdownThread of the application. |
static AwbTrayIcon |
getTrayIcon()
Gets the AgentGUI tray icon.
|
static boolean |
isBenchmarkRunning()
Checks if is benchmark is running.
|
static boolean |
isNetworkConnected()
Checks if the application is connected to a network.
|
static boolean |
isOperatingHeadless()
Checks if Agent.GUI is or has to be executed headless (without any GUI).
|
static boolean |
isQuitJVM()
Checks if is quit JVM.
|
static boolean |
isRunningAsServer()
If the application was executed as end user application, this will be false.
|
static void |
relaunch(java.lang.String additionalArguments)
Relaunches the application (Application | Server (Master|Slave) | Service & Embedded System Agent)
|
static void |
removeTrayIcon()
Removes the tray icon.
|
static void |
restart()
Restarts Agent.GUI (Application | Server | Service & Embedded System Agent)
|
static void |
setApplicationTitle(java.lang.String newApplicationTitle)
This method can be used in order to change the application title during runtime
|
static void |
setBenchmarkRunning(boolean isRunning)
Sets that the benchmark is running or not.
|
static void |
setCursor(java.awt.Cursor cursor)
Sets the cursor for the application.
|
static void |
setLanguage(java.lang.String newLang)
Enables to change the user language of the application
|
static void |
setLanguage(java.lang.String newLang,
boolean askUser)
Enables to change the user language of the application
If 'askUser' is set to false the changes will be done without user interaction.
|
static void |
setLogFileWriter(LogFileWriter newLogFileWriter)
Sets the LogFileWriter for the application.
|
static void |
setLookAndFeel(java.lang.String newLnF)
Set's the Look and feel of the application
|
static void |
setMainWindow(MainWindow newMainWindow)
Sets the main window.
|
static void |
setOntologyVisualisationConfigurationToCommonBundle()
Sets the actual configuration for the ontology visualization.
|
static void |
setOperatingHeadless(boolean headlessOperation)
Sets that Agent.GUI has to operated headless.
|
static void |
setProjectFocused(Project projectFocused)
Sets the currently focused
Project . |
static void |
setQuitJVM(boolean quitJVM)
Sets to quit the JVM.
|
static void |
setShutdownThread(ShutdownThread newShutdownThread)
Sets the ShutdownThread for the application.
|
static void |
setStatusBarMessage(java.lang.String statusText)
Sets the status bar message text.
|
static void |
setStatusBarMessageReady()
Sets the status bar text message to 'Ready'.
|
static void |
setStatusJadeRunning(boolean runs)
Sets the status which shows if JADE is running (green or red in the right corner of the status bar)
|
static void |
setTitelAddition(java.lang.String add2BasicTitel)
Adds a supplement to the application title
|
static void |
showAboutDialog()
Will show the About-Dialog of the application
|
static void |
showAuthenticationDialog()
Opens the OpenID Connect dialog
|
static void |
showChangeDialog()
Will show the ChangeDialog that displays the latest changes.
|
static void |
showEclipseWorkbench()
Shows the eclipse workbench.
|
static void |
showOptionDialog()
Opens the Configuration-Dialog for the
AgentGUI-Application without a specific
Tab to show
|
static void |
showOptionDialog(java.lang.String focusOnTab)
Opens the Option-Dialog of the application with a specified TabName
|
static void |
showTranslationDialog()
Opens the translation dialog of the application
|
static void |
start(org.agentgui.PlugInApplication piApp)
Main method for the start of the application running as end user application or server-tool.
|
static void |
startAgentWorkbench()
This methods starts Agent.Workbench into application or server mode, which
depends on the configuration in 'properties/agentgui.ini'.
|
static void |
startGarbageCollection()
Starts the java systems garbage collection in an individual Thread.
|
static LogFileWriter |
startLogFileWriter()
Creates the log file writer.
|
static void |
startMainWindow(java.lang.Runnable postWindowOpenRunnable)
Starts the main application window (JFrame).
|
static void |
startServer()
Starts the main procedure for the Server-Version of Agent.GUI
|
static void |
startServiceOrEmbeddedSystemAgent()
Start Agent.GUI as device system or embedded system agent.
|
static ShutdownThread |
startShutdownThread()
Creates and starts the
ShutdownThread that used in headless mode. |
static void |
stop()
Stops Agent.GUI (Application | Server | Service & Embedded System Agent)
|
static boolean |
stopAgentWorkbench()
This methods stops Agent.Workbench, running in application or server mode, which
depends on the configuration in 'properties/agentgui.ini'.
|
public static boolean isRunningAsServer()
public static boolean isOperatingHeadless()
public static void setOperatingHeadless(boolean headlessOperation)
headlessOperation
- the new headless operationpublic static boolean isNetworkConnected()
public static ShutdownThread startShutdownThread()
ShutdownThread
that used in headless mode.public static ShutdownThread getShutdownThread()
ShutdownThread
of the application.public static void setShutdownThread(ShutdownThread newShutdownThread)
ShutdownThread
.newShutdownThread
- the new ShutdownThreadpublic static AwbConsole getConsole()
public static LogFileWriter startLogFileWriter()
public static LogFileWriter getLogFileWriter()
public static void setLogFileWriter(LogFileWriter newLogFileWriter)
LogFileWriter
.newLogFileWriter
- the new LogFileWriterpublic static GlobalInfo getGlobalInfo()
public static Platform getJadePlatform()
public static AwbTrayIcon getTrayIcon()
public static void removeTrayIcon()
public static MainWindow getMainWindow()
public static void startMainWindow(java.lang.Runnable postWindowOpenRunnable)
postWindowOpenRunnable
- the post window open runnablepublic static void setMainWindow(MainWindow newMainWindow)
newMainWindow
- the new main windowpublic static DBConnection getDatabaseConnection(boolean renewDatabaseConnection)
renewDatabaseConnection
- the renew database connectionpublic static DBConnection getDatabaseConnection()
public static org.agentgui.PlugInApplication getIApplication()
public static void start(org.agentgui.PlugInApplication piApp)
piApp
- the current PlugInApplication
instancepublic static void startAgentWorkbench()
stopAgentWorkbench()
public static void startServer()
public static void startServiceOrEmbeddedSystemAgent()
public static boolean stopAgentWorkbench()
startAgentWorkbench()
public static void stop()
public static void restart()
public static void relaunch(java.lang.String additionalArguments)
public static boolean isQuitJVM()
public static void setQuitJVM(boolean quitJVM)
quitJVM
- the new quit JVMpublic static void showTranslationDialog()
public static void showOptionDialog()
public static void showAuthenticationDialog()
public static void showOptionDialog(java.lang.String focusOnTab)
focusOnTab
- Can be used to set the focus directly to a Tab specified by its namepublic static void showAboutDialog()
public static void showChangeDialog()
public static void showEclipseWorkbench()
public static void setTitelAddition(java.lang.String add2BasicTitel)
add2BasicTitel
- public static void setStatusJadeRunning(boolean runs)
runs
- public static void setStatusBarMessage(java.lang.String statusText)
statusText
- the new status bar messagepublic static void setStatusBarMessageReady()
public static void setCursor(java.awt.Cursor cursor)
cursor
- the new application cursorpublic static void setLookAndFeel(java.lang.String newLnF)
newLnF
- public static void setLanguage(java.lang.String newLang)
newLang
- => 'de', 'en', 'it', 'es' or 'fr' etc. is equal to the header line of the dictionarypublic static void setLanguage(java.lang.String newLang, boolean askUser)
newLang
- => 'de', 'en', 'it', 'es' or 'fr' etc. is equal to the header line of the dictionaryaskUser
- public static void doBenchmark(boolean forceBenchmark)
public static void setBenchmarkRunning(boolean isRunning)
isRunning
- the indicator if the benchmark is runningpublic static boolean isBenchmarkRunning()
public static void setApplicationTitle(java.lang.String newApplicationTitle)
newApplicationTitle
- sets a new application title/namepublic static java.lang.String getApplicationTitle()
public static ProjectsLoaded getProjectsLoaded()
public static void setProjectFocused(Project projectFocused)
Project
.projectFocused
- the new project focusedpublic static Project getProjectFocused()
Project
.public static void setOntologyVisualisationConfigurationToCommonBundle()
public static void startGarbageCollection()
System.gc()