org.nlogo.workspace
Class Checksummer

java.lang.Object
  extended by org.nlogo.workspace.Checksummer

public class Checksummer
extends Object


Field Summary
static String MODEL_CHECK_FILENAME
           
 
Method Summary
static void addChecksumEntry(AbstractWorkspace workspace)
           
static void addChecksumEntry(AbstractWorkspace workspace, Map m, String model)
           
static String calculateGraphicsChecksum(AbstractWorkspace workspace)
           
static String calculateWorldChecksum(AbstractWorkspace workspace)
           
static String getRevisionNumber(String model)
           
static String getRevisionNumber(String modelName, String dir)
           
static Map loadModelCheckSumsFromFile()
          Loads the model checksums from file.
static void writeModelCheckSumsToFile(Map m)
          Writes the model checksums out to file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_CHECK_FILENAME

public static final String MODEL_CHECK_FILENAME
See Also:
Constant Field Values
Method Detail

addChecksumEntry

public static void addChecksumEntry(AbstractWorkspace workspace)
                             throws LogoException,
                                    CompilerException,
                                    IOException
Throws:
LogoException
CompilerException
IOException

addChecksumEntry

public static void addChecksumEntry(AbstractWorkspace workspace,
                                    Map m,
                                    String model)
                             throws LogoException,
                                    CompilerException,
                                    IOException
Throws:
LogoException
CompilerException
IOException

calculateWorldChecksum

public static String calculateWorldChecksum(AbstractWorkspace workspace)

calculateGraphicsChecksum

public static String calculateGraphicsChecksum(AbstractWorkspace workspace)

writeModelCheckSumsToFile

public static void writeModelCheckSumsToFile(Map m)
                                      throws IOException
Writes the model checksums out to file

Throws:
IOException

loadModelCheckSumsFromFile

public static Map loadModelCheckSumsFromFile()
                                      throws IOException
Loads the model checksums from file.

Throws:
IOException

getRevisionNumber

public static String getRevisionNumber(String model)
                                throws IOException
Throws:
IOException

getRevisionNumber

public static String getRevisionNumber(String modelName,
                                       String dir)
                                throws IOException
Throws:
IOException