public class LispScriptExtension extends Extension
Title: CASA Agent Infrastructure
Copyright: Copyright (c) 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.
Company: Knowledge Science Group, Department of Computer Science, University of Calgary
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_ONCE
If the attribute is "true", then the script is run without an agent at startup and will not appear in the menu.
|
static String |
ATTR_ONCE_PER_AGENT
If this attribute is "true", then the script is run for each agent that matches its
Extension.ATTR_AGENTTYPE at agent startup. |
ATTR_AGENTTYPE, ATTR_AUTOLOAD, ATTR_DOC, ATTR_EXTENSIONNAME, ATTR_FRAMETYPE, descriptor, TYPE_CODE, TYPE_LISPSCRIPT, TYPE_TAB
Constructor and Description |
---|
LispScriptExtension(ExtensionDescriptor d) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
load(AbstractInternalFrame frame,
AbstractProcess agent)
Executes the lisp file:
If ATTR_ONCE is set and the frame and agent are null.
|
(package private) int |
validate()
defaults ATTR_EXTENSIONNAME to the souce file name
calls the parent version
ensures at ATTR_ONCE and ATTR_ONCE_PER_AGENT are not both true (throws if they are both true).
|
compareTo, toString, validateBool, validateClass, validateString
public static final String ATTR_ONCE
public static final String ATTR_ONCE_PER_AGENT
Extension.ATTR_AGENTTYPE
at agent startup.public LispScriptExtension(ExtensionDescriptor d)
d
- void load(AbstractInternalFrame frame, AbstractProcess agent)
load
in class Extension
frame
- The frame this extension should attach itself to. (May be null).agent
- The agent this extension should associate itself with. (May be null).Extension.load(casa.ui.AbstractInternalFrame, casa.AbstractProcess)
int validate() throws InvalidParameterException
validate
in class Extension
InvalidParameterException
- if a fatal error happens.Extension.validate()