object ModelsLibrary
- Source
- ModelsLibrary.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ModelsLibrary
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class JNode extends DefaultMutableTreeNode
- case class Leaf(name: String, path: String) extends Node with Product with Serializable
- sealed trait Node extends AnyRef
- case class Tree(name: String, path: String, children: Seq[Node])(implicit childOrdering: Ordering[String]) extends Node with Product with Serializable
Value Members
- def findModelsBySubstring(targetName: String): Seq[String]
- def getImagePath(filePath: String): String
-
def
getModelPath(targetName: String): Option[String]
scans for and returns the full path name to the given model in the models library.
scans for and returns the full path name to the given model in the models library.
- targetName
the name of the model to scan for, not including the ".nlogo" extension.
- returns
the path to the model, or None if no such model is in the library.
- def getModelPaths(exclusive: Boolean, useExtensionExamples: Boolean): Array[String]
- def getModelPaths(exclusive: Boolean): Array[String]
- def getModelPaths: Array[String]
- def getModelPathsAtRoot(path: String): Array[String]
- def modelsRoot: String
- def needsModelScan: Boolean
- var rootNode: Option[Node]
- def scanForModels(exclusive: Boolean, useExtensionExamples: Boolean): Unit
- def scanForModels(exclusive: Boolean): Unit
- def scanForModelsAtRoot(path: String, exclusive: Boolean): Option[Node]
- object NLogoModelOrdering extends Ordering[String]
- object Tree extends Serializable