Package jason.infra.local
Class BaseRuntimeServices
java.lang.Object
jason.infra.local.BaseRuntimeServices
- All Implemented Interfaces:
RuntimeServices
,Remote
- Direct Known Subclasses:
LocalRuntimeServices
implement services that are based on BaseLocalMAS
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dfDeRegister
(String agName, String service, String type) void
dfRegister
(String agName, String service, String type) void
dfSubscribe
(String agName, String service, String type) Returns a set of all agents' nameint
Gets the number of agents in the MAS.getDF()
getNewAgentName
(String baseName) getWP()
void
registerDefaultAgArch
(String agArch) Every agent that will be create use registered archsvoid
stopMAS
(int deadline, boolean stopJVM, int exitValue) Stops all MAS (the agents, the environment, the controller, ...)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jason.runtime.RuntimeServices
clone, createAgent, getAgentSnapshot, getAgStatus, getMASName, isRunning, killAgent, loadASL, runAsAgent, startAgent, stopMAS
-
Field Details
-
masRunner
-
-
Constructor Details
-
BaseRuntimeServices
-
-
Method Details
-
registerDefaultAgArch
Every agent that will be create use registered archs- Specified by:
registerDefaultAgArch
in interfaceRuntimeServices
-
getDefaultAgArchs
- Specified by:
getDefaultAgArchs
in interfaceRuntimeServices
-
getNewAgentName
- Specified by:
getNewAgentName
in interfaceRuntimeServices
-
getAgentsName
Description copied from interface:RuntimeServices
Returns a set of all agents' name- Specified by:
getAgentsName
in interfaceRuntimeServices
-
getAgentsQty
public int getAgentsQty()Description copied from interface:RuntimeServices
Gets the number of agents in the MAS.- Specified by:
getAgentsQty
in interfaceRuntimeServices
-
stopMAS
Description copied from interface:RuntimeServices
Stops all MAS (the agents, the environment, the controller, ...)- Specified by:
stopMAS
in interfaceRuntimeServices
- Throws:
Exception
-
dfRegister
- Specified by:
dfRegister
in interfaceRuntimeServices
-
dfDeRegister
- Specified by:
dfDeRegister
in interfaceRuntimeServices
-
dfSearch
- Specified by:
dfSearch
in interfaceRuntimeServices
-
dfSubscribe
- Specified by:
dfSubscribe
in interfaceRuntimeServices
-
getDF
- Specified by:
getDF
in interfaceRuntimeServices
-
getWP
- Specified by:
getWP
in interfaceRuntimeServices
-