Package jason.architecture
Class MindInspectorWebImpl
java.lang.Object
jason.architecture.MindInspectorWeb
jason.architecture.MindInspectorWebImpl
public class MindInspectorWebImpl extends MindInspectorWeb
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.util.List<org.w3c.dom.Document>>
histories
private com.sun.net.httpserver.HttpServer
httpServer
private java.util.Map<java.lang.String,java.lang.Integer>
lastStepSeenByUser
protected asl2xml
mindInspectorTransformer
private java.util.Map<java.lang.String,Agent>
registeredAgents
private RuntimeServices
runner
(package private) java.util.Map<java.lang.String,java.lang.Boolean>
show
Fields inherited from class jason.architecture.MindInspectorWeb
httpServerPort, httpServerURL
-
Constructor Summary
Constructors Constructor Description MindInspectorWebImpl()
-
Method Summary
Modifier and Type Method Description void
addAgState(Agent ag, org.w3c.dom.Document mind, boolean hasHistory)
private java.lang.String
getAgNameFromPath(java.lang.String path)
(package private) java.lang.String
getAgStateAsString(org.w3c.dom.Document ag)
void
registerAg(Agent ag)
add the agent in the list of available agent for mind inspectionprivate void
registerAgentsBrowserView()
(package private) java.lang.String
registerAgView(java.lang.String agName)
void
registerCentRunner(RuntimeServices rs)
private void
registerRootBrowserView()
void
removeAg(Agent ag)
java.lang.String
startHttpServer()
void
stoptHttpServer()
private boolean
tryToIncludeMindInspectorForAg(java.lang.String path)
Methods inherited from class jason.architecture.MindInspectorWeb
get, getURL, isRunning, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
httpServer
private com.sun.net.httpserver.HttpServer httpServer -
histories
private java.util.Map<java.lang.String,java.util.List<org.w3c.dom.Document>> histories -
lastStepSeenByUser
private java.util.Map<java.lang.String,java.lang.Integer> lastStepSeenByUser -
registeredAgents
-
runner
-
mindInspectorTransformer
-
show
java.util.Map<java.lang.String,java.lang.Boolean> show
-
-
Constructor Details
-
MindInspectorWebImpl
public MindInspectorWebImpl()
-
-
Method Details
-
startHttpServer
public java.lang.String startHttpServer()- Specified by:
startHttpServer
in classMindInspectorWeb
-
stoptHttpServer
public void stoptHttpServer()- Specified by:
stoptHttpServer
in classMindInspectorWeb
-
registerRootBrowserView
private void registerRootBrowserView() -
getAgNameFromPath
private java.lang.String getAgNameFromPath(java.lang.String path) -
tryToIncludeMindInspectorForAg
private boolean tryToIncludeMindInspectorForAg(java.lang.String path) -
registerAgentsBrowserView
private void registerAgentsBrowserView() -
registerAg
add the agent in the list of available agent for mind inspection- Specified by:
registerAg
in classMindInspectorWeb
-
removeAg
- Specified by:
removeAg
in classMindInspectorWeb
-
addAgState
- Specified by:
addAgState
in classMindInspectorWeb
-
registerAgView
java.lang.String registerAgView(java.lang.String agName) -
getAgStateAsString
java.lang.String getAgStateAsString(org.w3c.dom.Document ag) -
registerCentRunner
- Overrides:
registerCentRunner
in classMindInspectorWeb
-