public class VHRunner
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
agentID |
(package private) java.util.LinkedList<Event> |
eventList |
| Constructor and Description |
|---|
VHRunner(int id,
Mediator m,
GeneralVH VH,
GameBridgeUtils u)
Constructor for VHRunner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The run method for this thread.
|
(package private) void |
setSession(javax.websocket.Session s)
A method to assign a session to this VHRunner.
|
(package private) void |
setVH(GeneralVH agent)
A method to assign a VH to this VHRunner.
|
int agentID
java.util.LinkedList<Event> eventList
public VHRunner(int id,
Mediator m,
GeneralVH VH,
GameBridgeUtils u)
id - The id associated with the VHRunner. This will match up with an id for a VH. 0 indicates that the agent is negotiating for the User.
1 indicates that the agent is negotiating against the User.m - The mediator associated with this VHRunner.VH - The VH that this VHRunner wraps around.u - The GBU for the current session.void setSession(javax.websocket.Session s)
s - the web session to be assigned.void setVH(GeneralVH agent)
agent - the VH to be assigned.public void run()
run in interface java.lang.Runnable