|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.simulation.process.ProcessType
public abstract class ProcessType
This class represents a calculation entity (called a process) in visidia. A process run following specific communication types. For simplicity, we refer to types of processes instead of types of communication used by processes. ProcessType is the abstract base class for all these types.
Field Summary | |
---|---|
protected int |
id
The process id. |
protected Server |
server
The server. |
Constructor Summary | |
---|---|
protected |
ProcessType(int id,
Server server)
Instantiates a new process type. |
Method Summary | |
---|---|
void |
changeEdgeState(Vertex vertex,
int door,
EdgeState newEdgeState)
Changes the edge state. |
java.lang.Object |
getEdgeProperty(Vertex vertex,
int door,
java.lang.Object key)
Gets the edge property. |
int |
getId()
Gets the id. |
Server |
getServer()
Gets the server. |
void |
runningControl()
Running control. |
void |
setEdgeProperty(Vertex vertex,
int door,
java.lang.Object key,
java.lang.Object value)
Sets the edge property. |
void |
setEdgeProperty(Vertex vertex,
int door,
java.lang.Object key,
java.lang.Object value,
boolean displayable)
Sets the edge property. |
void |
setThread(java.lang.Thread thread)
Sets the thread. |
void |
start()
Starts the process. |
void |
stop()
Stops the process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int id
protected Server server
Constructor Detail |
---|
protected ProcessType(int id, Server server)
id
- the idserver
- the serverMethod Detail |
---|
public void setThread(java.lang.Thread thread)
thread
- the new threadpublic int getId()
public Server getServer()
public void runningControl()
public void start()
public void stop()
public void changeEdgeState(Vertex vertex, int door, EdgeState newEdgeState) throws java.lang.InterruptedException
vertex
- the vertexdoor
- the doornewEdgeState
- the new edge state
java.lang.InterruptedException
- the interrupted exceptionpublic java.lang.Object getEdgeProperty(Vertex vertex, int door, java.lang.Object key)
vertex
- the vertexdoor
- the doorkey
- the key
public void setEdgeProperty(Vertex vertex, int door, java.lang.Object key, java.lang.Object value, boolean displayable)
vertex
- the vertexdoor
- the doorkey
- the keyvalue
- the valuedisplayable
- indicates if the property can be viewed on graphpublic void setEdgeProperty(Vertex vertex, int door, java.lang.Object key, java.lang.Object value)
vertex
- the vertexdoor
- the doorkey
- the keyvalue
- the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |