org.jactr.entry
Class Main

java.lang.Object
  extended by org.jactr.entry.Main

public class Main
extends java.lang.Object

jACT-R start up application Usage: jactr --compile modelFile.jactr execution: jactr --environment environment.env jactr --run modelFile.compiled jactr --run modelFile.compiled --onStart class --onStop class jactr --log exit codes: -3 unknown -2 compilation error -1 configuration error 0 success

Author:
harrison

Constructor Summary
Main()
           
 
Method Summary
 void cleanUp(org.jactr.core.runtime.ACTRRuntime runtime)
           
 void compile(org.apache.commons.cli.CommandLine cmd)
          compile the models
 org.jactr.core.runtime.ACTRRuntime configureLogging(org.jactr.core.runtime.ACTRRuntime runtime, org.apache.commons.cli.CommandLine cmd)
          set up the logging for the models
 org.jactr.core.runtime.ACTRRuntime configureRuntime(org.jactr.core.runtime.ACTRRuntime runtime, org.apache.commons.cli.CommandLine cmd)
          create the deafault environment for a run..
 org.jactr.core.runtime.ACTRRuntime createRuntime(org.apache.commons.cli.CommandLine cmd)
           
 org.jactr.core.runtime.ACTRRuntime createRuntime(java.net.URL environmentConfigFile)
           
 org.jactr.core.runtime.ACTRRuntime loadModels(org.jactr.core.runtime.ACTRRuntime runtime, org.apache.commons.cli.CommandLine cmd)
           
static void main(java.lang.String[] argv)
          The main program for the jactr class
 void run(org.jactr.core.runtime.ACTRRuntime runtime)
           
 void waitForRuntime(org.jactr.core.runtime.ACTRRuntime runtime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Parameters:
cmd -
Method Detail

configureRuntime

public org.jactr.core.runtime.ACTRRuntime configureRuntime(org.jactr.core.runtime.ACTRRuntime runtime,
                                                           org.apache.commons.cli.CommandLine cmd)
create the deafault environment for a run.. possibly setting up the onStart/Stop

Returns:

configureLogging

public org.jactr.core.runtime.ACTRRuntime configureLogging(org.jactr.core.runtime.ACTRRuntime runtime,
                                                           org.apache.commons.cli.CommandLine cmd)
set up the logging for the models

Parameters:
cmd -
Returns:

waitForRuntime

public void waitForRuntime(org.jactr.core.runtime.ACTRRuntime runtime)

run

public void run(org.jactr.core.runtime.ACTRRuntime runtime)

cleanUp

public void cleanUp(org.jactr.core.runtime.ACTRRuntime runtime)

createRuntime

public org.jactr.core.runtime.ACTRRuntime createRuntime(java.net.URL environmentConfigFile)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

createRuntime

public org.jactr.core.runtime.ACTRRuntime createRuntime(org.apache.commons.cli.CommandLine cmd)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

compile

public void compile(org.apache.commons.cli.CommandLine cmd)
compile the models

Parameters:
cmd -

loadModels

public org.jactr.core.runtime.ACTRRuntime loadModels(org.jactr.core.runtime.ACTRRuntime runtime,
                                                     org.apache.commons.cli.CommandLine cmd)

main

public static void main(java.lang.String[] argv)
The main program for the jactr class

Parameters:
argv - The command line arguments
Since: