|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--physis.core.DigitalOrganismProxy
This class functions as a server. It provides access to an array of DigitalOrganisms. It runs as a separate thread.
| Field Summary | |
protected java.net.Socket |
client
|
static java.lang.String |
FITNESS
|
protected java.io.BufferedReader |
in
|
private static InstructionSet |
instruction_set
|
static java.lang.String |
MERIT
|
protected DigitalOrganism[] |
orgs
|
protected java.io.PrintWriter |
out
|
protected java.net.ServerSocket |
server
|
static java.lang.String |
VIVIFY
|
| Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
| Constructor Summary | |
DigitalOrganismProxy(int port_number,
DigitalOrganism[] local_orgs)
|
|
| Method Summary | |
protected void |
fitness(int index)
Writes to the socket the organism's fitness. |
protected void |
merit(int index)
Writes to the socket the organism's fitness. |
void |
run()
|
protected void |
vivify(int index)
|
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static InstructionSet instruction_set
protected DigitalOrganism[] orgs
protected java.net.ServerSocket server
protected java.net.Socket client
protected java.io.BufferedReader in
protected java.io.PrintWriter out
public static java.lang.String FITNESS
public static java.lang.String MERIT
public static java.lang.String VIVIFY
| Constructor Detail |
public DigitalOrganismProxy(int port_number,
DigitalOrganism[] local_orgs)
| Method Detail |
public void run()
run in class java.lang.Thread
protected void fitness(int index)
throws java.io.IOException
index - The index of the organism.
protected void merit(int index)
throws java.io.IOException
index - The index of the organism.
protected void vivify(int index)
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||