org.simBio
Class Run

java.lang.Object
  extended by org.simBio.Run
Direct Known Subclasses:
ResultGenerator

public class Run
extends java.lang.Object

Automatically calculates models. Set arguments of model xml files.

Version:
$Id: Run.java,v 1.9 2006/12/15 02:38:52 nsarai Exp $
Author:
Nobuaki Sarai

Constructor Summary
Run()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main entry.
static void setMaxThreads(int maxThreads)
          Sets the maximum number of threads.
static Composite start(Serializer serializer, java.lang.String id, java.io.Reader reference)
          Creates the model instance and starts the calculation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Run

public Run()
Method Detail

main

public static void main(java.lang.String[] args)
Main entry.

Parameters:
args - uris of xml file

setMaxThreads

public static void setMaxThreads(int maxThreads)
Sets the maximum number of threads.

Parameters:
maxThreads - maximum number of threads

start

public static Composite start(Serializer serializer,
                              java.lang.String id,
                              java.io.Reader reference)
Creates the model instance and starts the calculation.

Parameters:
serializer - an XML serializer for creating a model instance
id - id of the model
reference - a Reader object which is passed to the nested class Saver
Returns:
a model instance


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.