CTL
Class Process

java.lang.Object
  extended by CTL.Process

public class Process
extends java.lang.Object

Communication process


Field Summary
private  boolean daemon
           
private  Env env
           
protected  Location loc
          Location of the remote communication partner
private  boolean needsCleaner
           
private  int remote_id
           
private  Timer t
           
private  java.lang.Thread thr
           
 
Constructor Summary
Process(Location loc)
          Generate a new Process
Process(Location loc, java.lang.String[] args)
          Generate a new Process
 
Method Summary
 Env getEnv()
          Retrieve the local environment of this process
 int ID()
           
 boolean isAlive()
          Check if the process is actually running
 Location loc()
          Retrieve the location of this process.
private  void startService(Location loc, Communicator comm)
          Start the remote communication service
 void stopService()
          Stop the remote communication service
 void stopService(int you, boolean dmn)
           
 java.lang.String toString()
          Retrieve a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

loc

protected Location loc
Location of the remote communication partner


env

private Env env

thr

private java.lang.Thread thr

t

private Timer t

daemon

private boolean daemon

remote_id

private int remote_id

needsCleaner

private boolean needsCleaner
Constructor Detail

Process

public Process(Location loc)
Generate a new Process

Parameters:
loc - Location

Process

public Process(Location loc,
               java.lang.String[] args)
Generate a new Process

Parameters:
loc - Location
args - Commandline arguments
Method Detail

ID

public int ID()

isAlive

public boolean isAlive()
Check if the process is actually running

Returns:
True if running, false otherwise.

startService

private void startService(Location loc,
                          Communicator comm)
Start the remote communication service

Parameters:
loc - Location

stopService

public void stopService()
Stop the remote communication service


stopService

public void stopService(int you,
                        boolean dmn)

loc

public Location loc()
Retrieve the location of this process.

Returns:
Location

getEnv

public Env getEnv()
Retrieve the local environment of this process

Returns:
Environment

toString

public java.lang.String toString()
Retrieve a string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
String