public class LACWindow extends ProcessWindow implements WindowListener, AgentUI, ActionListener
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private CasaAgentTree |
agentTree |
(package private) boolean |
closeInProgress |
(package private) long |
closingWaitTime |
private LAC |
lac |
args, casaProcess, currentFrames, debugBar, desktopFrame, desktopManagerObject, lacLeftFrame, lacPort, lacWindow, menuItemShowInactive, menuSystemCASAPreferences, menuSystemClearTags, menuSystemLACDaemon, menuWindow_hideDebugBar, menuWindow_showDebugBar, pauseButton, pausedLabel, protection, resumeButton, stepButton, userNameORTitle
appIconSet, buttonPAUSE, buttonRESUME, buttonSTEP, commandPanel, frame, guiObserver, jFrame, jInternalFrame, listCDMembers, listCDs, menuAgent, menuAgent_editActs, menuAgent_editPerformatives, menuAgentCommands, menuCD_Invite, menuCD_Withdraw, menuEDIT_ACT_TYPES, menuEDIT_PERFORMATIVE_TYPES, menuEditTypes, menuEDITTYPES, menuHelp, menuHelp_helpJade, menuHelp_helpLisp, menuHelp_helpOWL2, menuHelp_homepage, menuHelp_htmanual, menuHelp_info, menuHelp_javadoc, menuHelp_umanual, menuHelpJade, menuHelpLisp, menuHelpOWL2, menuHIDE_DEBUG_BAR, menuHomePage, menuHowTo, menuINFO, menuJavaDoc, menuNEW_MENU_ITEM, menuOptions, menuOPTIONS, menuScripts, menuSET_CREATE_PROXY_WINDOWS, menuSET_SHOW_INACTIVE, menuSETDEBUG, menuSHOW_DEBUG_BAR, menuShowTrace, menuSHOWTRACE, menuSYSTEM_CLEAR_TAGS_TYPES, menuSYSTEM_LAC_DAEMON_TYPES, menuSYSTEM_Preferences, menuTools, menuUserManual, menuWindow, noAction, process
agent, showEvents, showInfo, showMessages, showTrace, showUnknown
TYPE_ANY, TYPE_BOOLEAN, TYPE_FLOAT, TYPE_INT, TYPE_STRING
Constructor and Description |
---|
LACWindow(LAC lac,
String[] args)
Constrcutor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
eventAgentMatch(ActionEvent e,
MLMessage message) |
OutputStream |
getOutStream()
Returns an output stream that can be used to write to the interface
|
protected void |
init()
Handles the creation of the LACWindow internal components such as the JSplitPane which
contains two main splits:
A LeftFrame that is composed of the LAC's tree and JTabbedPane
Viewer: DesktopViewer
LACInfo: Provides information about this LAC
A RightFrame composed if the desktop environment
A menu that hanldes:
The Creation of new ChatAgents
Navigating through each one of the JInternalFrames (i.e.
|
protected JMenu |
makeAgentMenu() |
protected JTabbedPane |
makeTabPane() |
(package private) JTabbedPane |
makeTreeTabPane() |
protected TypeEditDialog |
makeTypeEditDialog() |
void |
print(String txt) |
protected void |
printStatus(Status status,
String commandString) |
protected void |
setDebugBar() |
private void |
setDesktopWatcher()
method that sets the LACDesktopManager - Links it with the DesktopWatcher
|
boolean |
takesHTML() |
void |
updateEventHandler(Observable observable,
String event,
Object obj)
Observer Interface.
|
void |
updateHandler(Observable observable,
Object obj)
This method is called from
AbstractInternalFrame.update(Observable, Object) but
this method to always be executed in the AWT Event thread. |
protected void |
updateOptions()
Check consistency between the outcome of the options dialog box and any
Corresponding menu items and the various panes.
|
addAgentWindow, ask, closeWindow, createSystemMenu, doDefaultCloseAction, findFrameForAgent, getJFrame, isWindowClosable, makeMenuBar, println, removeFrame, saveWindowInfo, setInfoPanel, start, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
addFrameListener, addScript, addTab, CDMembersMouseHook, CDSelectionChanged, closeInternalFrame, createRequestedMenuItem, dispose, getBuildTime, getCommandPanel, getContentPane, getDesktopIcon, getFrame, getHeight, getLayeredPane, getListCDMembers, getMenuBarMenu, getRootPane, getTab, getTabComponent, getTabPane, getTitle, getWidth, insertMenuBar, insertMenuBarAfter, insertMenuBarBefore, insertTab, insertTabAfter, internalFrameActivated, internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, isClosed, isIcon, isInternalFrameClosable, isMaximized, makeCDPanel, makeCommandPanel, makeHelpMenu, makeToolsMenu, makeWindowMenu, pack, refreshTabMenu, removeTab, replaceMenuBar, replaceTabComponent, runInEventDispatchThread, runInEventDispatchThread, setClosable, setContentPane, setFrameIcon, setIcon, setIconifiable, setInfoPanel, setJMenuBar, setLocation, setMaximizable, setMaximized, setName, setOpaque, setResizable, setSelected, setSelectedTab, setSize, setTitle, setVisible, show, toFront, update, updateCDListFromAgent, updateCDmemberJList, updateMemberList, updateStrategyPanel, validate, withdrawCD
eval, evalWithHistory, handleEvent, handleOther, printlnObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
private LAC lac
private CasaAgentTree agentTree
long closingWaitTime
boolean closeInProgress
protected void init()
init
in class ProcessWindow
JTabbedPane makeTreeTabPane()
makeTreeTabPane
in class ProcessWindow
protected JTabbedPane makeTabPane()
makeTabPane
in class ProcessWindow
public boolean takesHTML()
takesHTML
in interface AgentUI
takesHTML
in class ProcessWindow
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class ProcessWindow
protected void printStatus(Status status, String commandString)
printStatus
in class ProcessWindow
public void print(String txt)
print
in interface AgentUI
print
in class ProcessWindow
public OutputStream getOutStream()
getOutStream
in interface AgentUI
getOutStream
in class ProcessWindow
protected void setDebugBar()
setDebugBar
in class ProcessWindow
private void setDesktopWatcher()
protected JMenu makeAgentMenu()
makeAgentMenu
in class AbstractInternalFrame
private void eventAgentMatch(ActionEvent e, MLMessage message)
protected TypeEditDialog makeTypeEditDialog()
makeTypeEditDialog
in class AbstractInternalFrame
protected void updateOptions()
updateOptions
in class AbstractInternalFrame
public void updateEventHandler(Observable observable, String event, Object obj)
ObserverNotification
and
ML
.updateEventHandler
in class ProcessWindow
observable
- The Observable that triggered this update callevent
- The eventobj
- The parameter to the eventpublic void updateHandler(Observable observable, Object obj)
AbstractInternalFrame
AbstractInternalFrame.update(Observable, Object)
but
this method to always be executed in the AWT Event thread. You should
use this instead of AbstractInternalFrame.update(Observable, Object)
(which is final).updateHandler
in class ProcessWindow
observable
- The Observable that triggered this update callobj
- The parameter object