simulator
Class SendVRML

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--simulator.SendVRML

class SendVRML
extends java.lang.Thread

This is the class that send a vrml dinamic view of the simulation. It must execute this two tasks:

To do this you must derived the GenericSendVRML class and define the runTask and sendVRML method, becouse this class refer to that methods.

See Also:
GenericSendVRML

Field Summary
protected  GenericSendVRML GSV
          Contains an istance of your send vrml procedures
protected  Server server
          Contains an instance of Server class
protected  int timeToSend
          Indicate how many times we must attend before send a vrml scene to the client.
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
SendVRML(Server server, GenericSendVRML GSV)
          Initialize the internal variable and start thread body
 
Method Summary
 void run()
          This thread calles the runTask method of GenericSendVRML and after timeToSend times calles the sendVRML method too.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GSV

protected GenericSendVRML GSV
Contains an istance of your send vrml procedures

server

protected Server server
Contains an instance of Server class

timeToSend

protected int timeToSend
Indicate how many times we must attend before send a vrml scene to the client. So the effective time to attend before send is: printerTime*timeToSend
See Also:
ProcessesHandler.printerTime
Constructor Detail

SendVRML

public SendVRML(Server server,
                GenericSendVRML GSV)
Initialize the internal variable and start thread body
Parameters:
server - the istance of the server
GSV - the istance of your send vrml
Method Detail

run

public void run()
This thread calles the runTask method of GenericSendVRML and after timeToSend times calles the sendVRML method too.
Overrides:
run in class java.lang.Thread
See Also:
GenericSendVRML.runTask(), GenericSendVRML.sendVRML(), timeToSend