Class GraphWriter

All Implemented Interfaces:
IBaseWriter

public class GraphWriter extends ANeuroMLBaseWriter
  • Constructor Details

    • GraphWriter

      public GraphWriter(org.lemsml.jlems.core.type.Lems lems) throws ModelFeatureSupportException, org.neuroml.model.util.NeuroMLException, org.lemsml.jlems.core.sim.LEMSException
      Throws:
      ModelFeatureSupportException
      org.neuroml.model.util.NeuroMLException
      org.lemsml.jlems.core.sim.LEMSException
    • GraphWriter

      public GraphWriter(org.lemsml.jlems.core.type.Lems lems, File outputFolder, String outputFileName) throws ModelFeatureSupportException, org.neuroml.model.util.NeuroMLException, org.lemsml.jlems.core.sim.LEMSException
      Throws:
      ModelFeatureSupportException
      org.neuroml.model.util.NeuroMLException
      org.lemsml.jlems.core.sim.LEMSException
  • Method Details

    • setSupportedFeatures

      public void setSupportedFeatures()
    • addComment

      protected void addComment(StringBuilder sb, String comment)
      Specified by:
      addComment in class ABaseWriter
    • getMainScript

      public String getMainScript() throws GenerationException
      Throws:
      GenerationException
    • getDimensionString

      protected String getDimensionString(String dim)
    • getCompTypeInfo

      protected String getCompTypeInfo(org.lemsml.jlems.core.type.ComponentType compType) throws org.lemsml.jlems.core.sim.ContentError
      Throws:
      org.lemsml.jlems.core.sim.ContentError
    • addCompTypeAndChildrenAndExtends

      protected void addCompTypeAndChildrenAndExtends(org.lemsml.jlems.core.type.ComponentType compType, String parent, String extendedType, int depth) throws org.lemsml.jlems.core.sim.ContentError
      Throws:
      org.lemsml.jlems.core.sim.ContentError
    • getValAndUnit

      protected String getValAndUnit(double value, String dimName) throws org.lemsml.jlems.core.sim.ContentError
      Throws:
      org.lemsml.jlems.core.sim.ContentError
    • addCompAndChildren

      protected void addCompAndChildren(org.lemsml.jlems.core.type.Component comp, String parent, String arrowLabel) throws org.lemsml.jlems.core.sim.ContentError
      Throws:
      org.lemsml.jlems.core.sim.ContentError
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • convert

      public List<File> convert()