org.crwth.systems
Class Collector

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.crwth.systems.Collector
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
RandomCollector1d

public abstract class Collector
extends Thread

A generic data Collector for object creation. The Collector and its subclasses create/generate/load/find the information needed to populate the Space with Masses and Springs.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Collector()
           
 
Method Summary
abstract  void setSpace(Space s)
          Sets the Space object that this Collector object populates.
 
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
 

Constructor Detail

Collector

public Collector()
Method Detail

setSpace

public abstract void setSpace(Space s)
                       throws WrongDimensionException
Sets the Space object that this Collector object populates.

Parameters:
s - the Space object to populate.
Throws:
WrongDimensionException - if s has a mismatched dimension.