org.simBio.sim.js
Class Worker
java.lang.Object
org.simBio.sim.js.Worker
- All Implemented Interfaces:
- java.lang.Runnable
public class Worker
- extends java.lang.Object
- implements java.lang.Runnable
Calculate requested XMLs.
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.
- Version:
- $Id: Worker.java,v 1.1 2007/12/18 03:14:54 mikaelwing Exp $
- Author:
- Nobuaki Sarai
Method Summary |
void |
calculated()
call back Method from Processor. |
static java.lang.String |
getName()
|
static void |
main(java.lang.String[] args)
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.InterruptedException,
UnusableEntryException,
TransactionException
- Parameters:
args
- num of worker threads, CPU number is recomended.
- Throws:
TransactionException
UnusableEntryException
java.lang.InterruptedException
java.io.IOException
getName
public static java.lang.String getName()
calculated
public void calculated()
- call back Method from Processor.
packageレベルの可視性だとilliegal access exceptionが発生する。 publicだとOK
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.