Class RunLocalMAS

All Implemented Interfaces:
RunLocalMASMBean, NotificationBroadcaster, NotificationEmitter
Direct Known Subclasses:
RunJadeMAS

public class RunLocalMAS extends BaseLocalMAS implements RunLocalMASMBean
Runs MASProject using *Local* infrastructure.
  • Field Details

  • Constructor Details

    • RunLocalMAS

      public RunLocalMAS()
  • Method Details

    • hasDebugControl

      public boolean hasDebugControl()
      Specified by:
      hasDebugControl in class BaseLocalMAS
    • enableDebugControl

      public void enableDebugControl()
      Specified by:
      enableDebugControl in class BaseLocalMAS
    • main

      public static void main(String[] args) throws JasonException
      Throws:
      JasonException
    • registerMBean

      protected void registerMBean()
    • registerWebMindInspector

      protected void registerWebMindInspector()
    • addInitArg

      public void addInitArg(String k, Object v)
    • init

      public int init(String[] args)
    • parseArgs

      protected void parseArgs(String[] args)
    • registerInRMI

      protected void registerInRMI()
    • getRunningMASFile

      public static File getRunningMASFile()
    • storeRunningMASInCommonFile

      public void storeRunningMASInCommonFile(String masName, String address)
    • create

      public void create() throws JasonException
      create environment, agents, controller
      Throws:
      JasonException
    • start

      public void start()
      start agents, ....
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in class BaseLocalMAS
    • setupLogger

      public void setupLogger()
      Specified by:
      setupLogger in class BaseLocalMAS
    • setupLogger

      public void setupLogger(String confFile)
    • getDefaultLogProperties

      protected InputStream getDefaultLogProperties() throws IOException
      Throws:
      IOException
    • setupDefaultConsoleLogger

      protected void setupDefaultConsoleLogger()
    • createButtons

      protected void createButtons()
    • createPauseButton

      protected void createPauseButton()
    • createStopButton

      protected void createStopButton()
    • createNewReplAgButton

      protected void createNewReplAgButton()
    • createEnvironment

      protected void createEnvironment() throws JasonException
      Throws:
      JasonException
    • createAgs

      protected void createAgs() throws JasonException
      Throws:
      JasonException
    • createController

      protected void createController() throws JasonException
      Throws:
      JasonException
    • startAgs

      protected void startAgs()
    • stopAgs

      protected void stopAgs(int deadline)
    • killAg

      public boolean killAg(String agName)
      Specified by:
      killAg in interface RunLocalMASMBean
    • changeToDebugMode

      protected void changeToDebugMode()
      change the current running MAS to debug mode
    • startSyncMode

      protected void startSyncMode()
    • waitEnd

      public void waitEnd()
    • finish

      public void finish(int deadline, boolean stopJVM, int exitValue)
      Specified by:
      finish in interface RunLocalMASMBean
      Specified by:
      finish in class BaseLocalMAS