org.nlogo.workspace
Class Library
java.lang.Object
org.nlogo.workspace.Library
public class Library
- extends Object
rootNode
public static Library.Node rootNode
getModelPaths
public static String[] getModelPaths()
getModelPathsAtRoot
public static String[] getModelPathsAtRoot(String path)
findModelsBySubstring
public static List findModelsBySubstring(String targetName)
getModelPath
public static String getModelPath(String targetName)
- scans for and returns the full path name to the given model in the
models library.
- Parameters:
targetName
- the name of the model to scan for, not including the
".nlogo" extension.
- Returns:
- the path to the model, or null if no such model is in the
library.
needsModelScan
public static boolean needsModelScan()
scanForModels
public static void scanForModels()
scanForModelsAtRoot
public static Library.Node scanForModelsAtRoot(String path)
getInfoWindow
public static String getInfoWindow(String filePath)
throws IOException
- Throws:
IOException
getImagePath
public static String getImagePath(String filePath)
isExternalModelPath
public static boolean isExternalModelPath(String path)