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
Modifier and TypeFieldDescriptionprotected Map
<String, LocalAgArch> protected static boolean
protected LocalExecutionControl
protected static boolean
static final String
protected AgArch
protected LocalEnvironment
protected static Logger
static final String
protected static MAS2JProject
protected static BaseLocalMAS
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAg
(LocalAgArch ag) protected boolean
void
dfDeRegister
(String agName, String service) void
dfRegister
(String agName, String service) DF methodsvoid
dfSubscribe
(String agName, String service) abstract void
void
finish()
abstract void
finish
(int deadline, boolean stopJVM, int exitValue) getAgs()
getDF()
protected Agent
getDFAg()
protected AgArch
int
static BaseLocalMAS
Deprecated.use RuntimeServicesFactory.get() instead.protected Collection
<Literal> getWP()
abstract boolean
boolean
isDebug()
abstract boolean
protected void
sendProvider
(String receiver, String provider, String service) void
void
Deprecated.use RuntimeServicesFactory.set() instead.abstract void
Methods 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
-