core
Class Dispatcher

java.lang.Object
  extended byjava.lang.Thread
      extended bycore.Dispatcher
All Implemented Interfaces:
java.lang.Runnable

public class Dispatcher
extends java.lang.Thread

Dispatcher.java This class dispatches Packets from the Virtual Network to their destinations with the help of the Singleton Manager class

Author:
Avi TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Dispatcher(LocationThread loc, Buffer vNet)
          Constructor takes in reference to the Virtual Network buffer, which contains all the packets to be dispatched.
 
Method Summary
 void run()
          Start the dispatcher.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher(LocationThread loc,
                  Buffer vNet)
Constructor takes in reference to the Virtual Network buffer, which contains all the packets to be dispatched.

Parameters:
loc - A thread which handles changing of node locations
vNet - The Buffer object representing the Virtual Network TODO LOCATION THREAD NEEDS TO BE DELETED
Method Detail

run

public void run()
Start the dispatcher.