org.simBio
Class JSEntry
java.lang.Object
org.simBio.JSEntry
- All Implemented Interfaces:
- java.lang.Runnable
public class JSEntry
- extends java.lang.Object
- implements java.lang.Runnable
Generate XMLs, Request calculation, and gather results.
To execute, add VM argument as:
-Djava.security.policy=policy.all
-Djava.rmi.server.codebase=http://10.238.63.14:8083/simBio_JavaSpaces-1.0.jar
but replace the codebase with current values.
where:
10.238.63.14:8083 is the PC's IP number where the code is located, using port 8083. Typically the client PC.
simBio_JavaSpaces-1.0.jar is version 1.0 of simBio_JavaSpacesClient's JAR Archive.
TODO enable to send classes needed to instantiate a model.
- Version:
- $Id: JSEntry.java,v 1.2 2008/01/10 09:35:06 mikaelwing Exp $
- Author:
- sarai
Field Summary |
static java.lang.String |
SENDER_ID_FILE
property key to get file name of serialized id. |
Method Summary |
static java.lang.String |
execute(java.lang.String id,
org.w3c.dom.Document modelXML,
org.w3c.dom.Document protocolXML)
|
static java.lang.String[] |
getResultModel(org.w3c.dom.Document protocolXML)
|
static void |
main(java.lang.String[] args)
|
void |
run()
Thread that loops, taking & saving results. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SENDER_ID_FILE
public static final java.lang.String SENDER_ID_FILE
- property key to get file name of serialized id.
- See Also:
- Constant Field Values
main
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.lang.InterruptedException
- Parameters:
args
- protocol xml to generate results by myself. id, protocol xml
to send xmls and catch results in JavaSpaces. id, protocol xml,
time, requested No., collected No., to collect the left in
JavaSpaces.
- Throws:
java.io.FileNotFoundException
java.lang.InterruptedException
execute
public static java.lang.String execute(java.lang.String id,
org.w3c.dom.Document modelXML,
org.w3c.dom.Document protocolXML)
throws java.lang.InterruptedException
- Parameters:
id
- modelXML
- protocolXML
-
- Returns:
- toc.xml
- Throws:
java.lang.InterruptedException
getResultModel
public static java.lang.String[] getResultModel(org.w3c.dom.Document protocolXML)
- Parameters:
protocolXML
-
- Returns:
run
public void run()
- Thread that loops, taking & saving results.
- Specified by:
run
in interface java.lang.Runnable
Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.