Package jason.mas2j

Class MAS2JProject

java.lang.Object
jason.mas2j.MAS2JProject
All Implemented Interfaces:
Serializable

public class MAS2JProject extends Object implements Serializable
Represents a MAS2J project (usually created from a .mas2j file)
See Also:
  • Field Details

  • Constructor Details

    • MAS2JProject

      public MAS2JProject()
  • Method Details

    • parse

      public static MAS2JProject parse(String file)
    • setupDefault

      public void setupDefault()
    • setDirectory

      public void setDirectory(String d)
    • getDirectory

      public String getDirectory()
    • setProjectFile

      public void setProjectFile(File f)
    • getProjectFile

      public File getProjectFile()
    • setInfrastructure

      public void setInfrastructure(ClassParameters infra)
    • getInfrastructure

      public ClassParameters getInfrastructure()
    • isJade

      public boolean isJade()
    • setEnvClass

      public void setEnvClass(ClassParameters e)
    • getEnvClass

      public ClassParameters getEnvClass()
    • setSocName

      public void setSocName(String s)
    • getSocName

      public String getSocName()
    • setControlClass

      public void setControlClass(ClassParameters sControl)
    • getControlClass

      public ClassParameters getControlClass()
    • initAgMap

      public void initAgMap()
    • addAgent

      public void addAgent(AgentParameters a)
    • getAg

      public AgentParameters getAg(String name)
    • getAgents

      public List<AgentParameters> getAgents()
    • getAllASFiles

      public Set<File> getAllASFiles()
    • fixAgentsSrc

      public void fixAgentsSrc()
      change the source of the agents using the source path information, also considers code from a jar file (if urlPrefix is not null)
    • addClassPath

      public void addClassPath(String cp)
    • getClassPaths

      public List<String> getClassPaths()
    • addSourcePath

      public void addSourcePath(String cp)
    • getSourcePaths

      public SourcePath getSourcePaths()
    • addDirectiveClass

      public void addDirectiveClass(String id, ClassParameters classname)
    • getDirectiveClasses

      public Map<String,String> getDirectiveClasses()
    • registerDirectives

      public void registerDirectives()
    • toString

      public String toString()
      Overrides:
      toString in class Object