Package jason.architecture
Class MindInspectorAgArch
java.lang.Object
jason.architecture.AgArch
jason.architecture.MindInspectorAgArch
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgArch>
public class MindInspectorAgArch extends AgArch
ArArch that displays the mind state of the agent
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.Document
agState
private int
fileCounter
protected boolean
hasHistory
protected boolean
hasMindInspectorByCycle
private java.lang.String
lastHistoryText
protected java.lang.String
mindInspectorDirectory
protected static javax.swing.JFrame
mindInspectorFrame
protected javax.swing.JCheckBox
mindInspectorFreeze
protected java.util.List<org.w3c.dom.Document>
mindInspectorHistory
protected javax.swing.JSlider
mindInspectorHistorySlider
protected javax.swing.JTextPane
mindInspectorPanel
protected static javax.swing.JTabbedPane
mindInspectorTab
protected asl2xml
mindInspectorTransformer
private java.lang.String
previousShownText
private static long
serialVersionUID
protected java.util.Map<java.lang.String,java.lang.Boolean>
show
protected int
updateInterval
protected MindInspectorWeb
webServer
-
Constructor Summary
Constructors Constructor Description MindInspectorAgArch()
-
Method Summary
Modifier and Type Method Description protected void
addAgState()
private void
createFileMindInspector(Structure sConf)
private void
createGUIMindInspector(Structure sConf)
private void
createWebMindInspector(Structure sConf)
(package private) java.lang.String
getAgStateAsString(org.w3c.dom.Document ag, boolean full)
private void
hyperLink(javax.swing.event.HyperlinkEvent evt)
void
init()
private void
readObject(java.io.ObjectInputStream in)
void
reasoningCycleStarting()
A call-back method called by TS when a new reasoning cycle is startingvoid
setupMindInspector(java.lang.String configuration)
process the mindinspector parameter used in the agent option in .mas2j project.private void
setupSlider()
(package private) void
showAgState(org.w3c.dom.Document state)
show current agent statevoid
stop()
A call-back method called by the infrastructure tier when the agent is about to be killed.Methods inherited from class jason.architecture.AgArch
act, actionExecuted, broadcast, canSleep, checkMail, compareTo, createCustomArchs, equals, getAgArchClassesChain, getAgName, getCycleNumber, getFirstAgArch, getNextAgArch, getRuntimeServices, getStatus, getTS, hashCode, incCycleNumber, insertAgArch, isRunning, perceive, reasoningCycleFinished, sendMsg, setCycleNumber, setTS, toString, wake, wakeUpAct, wakeUpDeliberate, wakeUpSense
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
hasMindInspectorByCycle
protected transient boolean hasMindInspectorByCycle -
updateInterval
protected transient int updateInterval -
mindInspectorFrame
protected static transient javax.swing.JFrame mindInspectorFrame -
mindInspectorTab
protected static transient javax.swing.JTabbedPane mindInspectorTab -
mindInspectorPanel
protected transient javax.swing.JTextPane mindInspectorPanel -
mindInspectorHistorySlider
protected transient javax.swing.JSlider mindInspectorHistorySlider -
mindInspectorFreeze
protected transient javax.swing.JCheckBox mindInspectorFreeze -
mindInspectorHistory
protected transient java.util.List<org.w3c.dom.Document> mindInspectorHistory -
mindInspectorTransformer
-
mindInspectorDirectory
protected transient java.lang.String mindInspectorDirectory -
show
protected transient java.util.Map<java.lang.String,java.lang.Boolean> show -
agState
protected transient org.w3c.dom.Document agState -
webServer
-
hasHistory
protected transient boolean hasHistory -
lastHistoryText
private java.lang.String lastHistoryText -
fileCounter
private int fileCounter -
previousShownText
private transient java.lang.String previousShownText
-
-
Constructor Details
-
MindInspectorAgArch
public MindInspectorAgArch()
-
-
Method Details
-
init
public void init() -
stop
public void stop()A call-back method called by the infrastructure tier when the agent is about to be killed. -
reasoningCycleStarting
public void reasoningCycleStarting()Description copied from class:AgArch
A call-back method called by TS when a new reasoning cycle is starting- Overrides:
reasoningCycleStarting
in classAgArch
-
setupMindInspector
public void setupMindInspector(java.lang.String configuration)process the mindinspector parameter used in the agent option in .mas2j project. E.g. agents bob x.asl [mindinspector="gui(cycle,html)"]; General syntax of the parameter: [gui|file|web] ( [ cycle|number ] , [xml,html] [, history | directory] ) -
createGUIMindInspector
-
hyperLink
private void hyperLink(javax.swing.event.HyperlinkEvent evt) -
setupSlider
private void setupSlider() -
createFileMindInspector
-
createWebMindInspector
-
addAgState
protected void addAgState() -
showAgState
void showAgState(org.w3c.dom.Document state)show current agent state -
readObject
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
getAgStateAsString
java.lang.String getAgStateAsString(org.w3c.dom.Document ag, boolean full)
-