org.crwth.systems
Class Viewer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.crwth.systems.Viewer
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
GraphicViewer, TextViewer

public abstract class Viewer
extends Thread

A generic Viewer. A Viewer connects to a Space from which it gets the objects to display. Viewers can be graphical, text-based or ... something else?


Field Summary
protected  long d
           
protected  Space s
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Viewer()
           
 
Method Summary
abstract  void setSpace(Space space)
          Sets the Space object used to retrieve Mass and Spring objects.
 
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, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s

protected Space s

d

protected long d
Constructor Detail

Viewer

public Viewer()
Method Detail

setSpace

public abstract void setSpace(Space space)
                       throws WrongDimensionException
Sets the Space object used to retrieve Mass and Spring objects.

Parameters:
space - the Space object to use.
Throws:
WrongDimensionException - if space has a mismatched dimension.