Package jason.infra.local
Class BaseLocalMAS
java.lang.Object
javax.management.NotificationBroadcasterSupport
jason.infra.local.BaseLocalMAS
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter
- Direct Known Subclasses:
RunLocalMAS
Runs MASProject using local infrastructure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, LocalAgArch> protected static booleanprotected LocalExecutionControlprotected static booleanstatic final Stringprotected AgArchprotected LocalEnvironmentprotected static Loggerstatic final Stringprotected static MAS2JProjectprotected static BaseLocalMASstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAg(LocalAgArch ag) protected booleanvoiddfDeRegister(String agName, String service) voiddfRegister(String agName, String service) DF methodsvoiddfSubscribe(String agName, String service) abstract voidvoidfinish()abstract voidfinish(int deadline, boolean stopJVM, int exitValue) getAgs()getDF()protected AgentgetDFAg()protected AgArchintstatic BaseLocalMASDeprecated.use RuntimeServicesFactory.get() instead.protected Collection<Literal> getWP()abstract booleanbooleanisDebug()abstract booleanprotected voidsendProvider(String receiver, String provider, String service) voidvoidDeprecated.use RuntimeServicesFactory.set() instead.abstract voidMethods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Field Details
-
logPropFile
- See Also:
-
stopMASFileName
- See Also:
-
defaultProjectFileName
- See Also:
-
logger
-
runner
-
appFromClassPath
protected static boolean appFromClassPath -
project
-
debug
protected static boolean debug -
env
-
control
-
ags
-
dfAg
-
-
Constructor Details
-
BaseLocalMAS
public BaseLocalMAS()
-
-
Method Details
-
isDebug
public boolean isDebug() -
getRunner
-
getRuntimeServices
Deprecated.use RuntimeServicesFactory.get() instead. -
setRuntimeServices
Deprecated.use RuntimeServicesFactory.set() instead. -
getControllerInfraTier
-
getEnvironmentInfraTier
-
getProject
-
setProject
-
addAg
-
delAg
-
getAg
-
getAgs
-
getNbAgents
public int getNbAgents() -
setupLogger
public abstract void setupLogger() -
finish
public abstract void finish(int deadline, boolean stopJVM, int exitValue) -
finish
public void finish() -
hasDebugControl
public abstract boolean hasDebugControl() -
enableDebugControl
public abstract void enableDebugControl() -
isRunning
public abstract boolean isRunning() -
getDFAgArch
- Throws:
Exception
-
getDFAg
- Throws:
Exception
-
dfAgExists
protected boolean dfAgExists() -
getSubscribers
- Throws:
Exception
-
dfRegister
DF methods -
dfDeRegister
-
dfSearch
-
dfSubscribe
-
sendProvider
-
getDF
-
getWP
-