Package jason.control
Class ExecutionControlGUI
java.lang.Object
jason.control.ExecutionControl
jason.control.ExecutionControlGUI
public class ExecutionControlGUI extends ExecutionControl
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,org.w3c.dom.Document>>
agsHistory
(package private) int
agShownState
(package private) org.w3c.dom.Document
agState
(package private) asl2xml
agTransformer
(package private) asl2html
agTransformerHtml
(package private) asl2tex
agTransformerTex
(package private) asl2xml
agTransformerXML
private boolean
breakpoint
private int
countCycles
(package private) java.lang.String
currentAgName
(package private) java.lang.String
currentAgState
private java.util.concurrent.ExecutorService
executor
(package private) javax.swing.JFrame
frame
(package private) javax.swing.JButton
jBtRun
(package private) javax.swing.JComboBox
jCbViewAs
(package private) javax.swing.JComboBox
jCbWho
(package private) javax.swing.JSlider
jHistory
(package private) javax.swing.JList
jList
(package private) javax.swing.JTextPane
jTA
(package private) javax.swing.JTextField
jTfSteps
(package private) javax.swing.DefaultListModel
listModel
private int
maxCycles
private java.lang.String
previousMind
(package private) java.util.Map<java.lang.String,java.lang.Boolean>
show
(package private) javax.swing.JPanel
spList
static java.lang.String
title
private boolean
waitAllAgs
private boolean
waitSelectedAg
Fields inherited from class jason.control.ExecutionControl
infraControl, logger
-
Constructor Summary
Constructors Constructor Description ExecutionControlGUI()
-
Method Summary
Modifier and Type Method Description protected void
allAgsFinished()
called when all agents have finished the current cycleprotected void
continueRun()
private void
hyperLink(javax.swing.event.HyperlinkEvent evt)
void
init(java.lang.String[] args)
This method is called when setExecutionControlInfraTier was already called(package private) void
initComponents()
private void
inspectAgent(java.lang.String agName)
void
receiveFinishedCycle(java.lang.String agName, boolean breakpoint, int cycle)
Called when the agent agName has finished its reasoning cycle.(package private) void
setListOfAgsFromInfra()
private void
setupSlider()
(package private) void
showAgState()
show current agent stateprotected void
startRun()
void
stop()
This method is called when MAS execution is being finishedprotected void
stopRun()
stop the executionprotected void
storeAgHistory(java.lang.String agName, int cycle, org.w3c.dom.Document doc)
protected boolean
testStop()
test whether to stop running and show the agent stateMethods inherited from class jason.control.ExecutionControl
getCycleNumber, getCycleTimeout, getExecutionControlInfraTier, getNbAgs, isRunning, setExecutionControlInfraTier, setNbAgs, setRunningCycle, startNewCycle, testEndCycle, toString, updateNumberOfAgents
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
currentAgState
java.lang.String currentAgState -
currentAgName
java.lang.String currentAgName -
agShownState
int agShownState -
agsHistory
private java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,org.w3c.dom.Document>> agsHistory -
countCycles
private int countCycles -
maxCycles
private int maxCycles -
waitAllAgs
private boolean waitAllAgs -
waitSelectedAg
private boolean waitSelectedAg -
breakpoint
private boolean breakpoint -
agTransformerXML
asl2xml agTransformerXML -
agTransformerTex
asl2tex agTransformerTex -
agTransformerHtml
asl2html agTransformerHtml -
agTransformer
asl2xml agTransformer -
frame
javax.swing.JFrame frame -
jTfSteps
javax.swing.JTextField jTfSteps -
jCbWho
javax.swing.JComboBox jCbWho -
jBtRun
javax.swing.JButton jBtRun -
jCbViewAs
javax.swing.JComboBox jCbViewAs -
jHistory
javax.swing.JSlider jHistory -
jTA
javax.swing.JTextPane jTA -
jList
javax.swing.JList jList -
spList
javax.swing.JPanel spList -
listModel
javax.swing.DefaultListModel listModel -
agState
org.w3c.dom.Document agState -
show
java.util.Map<java.lang.String,java.lang.Boolean> show -
title
public static java.lang.String title -
previousMind
private java.lang.String previousMind -
executor
private java.util.concurrent.ExecutorService executor
-
-
Constructor Details
-
ExecutionControlGUI
public ExecutionControlGUI()
-
-
Method Details
-
init
public void init(java.lang.String[] args)Description copied from class:ExecutionControl
This method is called when setExecutionControlInfraTier was already called- Overrides:
init
in classExecutionControl
-
initComponents
void initComponents() -
setListOfAgsFromInfra
void setListOfAgsFromInfra() -
setupSlider
private void setupSlider() -
stop
public void stop()Description copied from class:ExecutionControl
This method is called when MAS execution is being finished- Overrides:
stop
in classExecutionControl
-
inspectAgent
private void inspectAgent(java.lang.String agName) -
showAgState
void showAgState()show current agent state -
hyperLink
private void hyperLink(javax.swing.event.HyperlinkEvent evt) -
startRun
protected void startRun() -
stopRun
protected void stopRun()stop the execution -
continueRun
protected void continueRun() -
receiveFinishedCycle
public void receiveFinishedCycle(java.lang.String agName, boolean breakpoint, int cycle)Called when the agent agName has finished its reasoning cycle. breakpoint is true in case the agent selected one plan with "breakpoint" annotation.- Overrides:
receiveFinishedCycle
in classExecutionControl
-
allAgsFinished
protected void allAgsFinished()called when all agents have finished the current cycle- Overrides:
allAgsFinished
in classExecutionControl
-
testStop
protected boolean testStop()test whether to stop running and show the agent state -
storeAgHistory
protected void storeAgHistory(java.lang.String agName, int cycle, org.w3c.dom.Document doc)
-