generator2
Class DataGenerator

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--showmap.ShowMap
                                |
                                +--showmap.ShowNetworkMap
                                      |
                                      +--generator2.DataGenerator
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
Direct Known Subclasses:
DefaultDataGenerator

public abstract class DataGenerator
extends ShowNetworkMap
implements java.awt.event.AdjustmentListener

Abstract controller applet for the computation of network-based spatiotemporal datasets. The abstract methods allow to use user-defined classes determining the bahavior of the generator. Non-abtract subclasses are the classes generator2.DefaultDataGenerator, generator2.OracleDataGenerator, and generator2.OracleSpatialDataGenerator. It is also possible to run these subclasses as Java applications. See the additional documentation for the supported properties in the property file.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  int actTime
          Current displayed time (0 = all times)
static int APPLICATION_START_ERROR
          Application start error
protected  DataSpace dataspace
          The data space.
protected  EdgeClasses edgeClasses
          The edge classes.
protected  ExternalObjectClasses extObjClasses
          The classes of external objects.
protected  ExternalObjects extObjects
          The external objects.
protected static java.awt.Frame frame
          The frame containing the applet if it is running as application.
static int MAX_EXTOBJBEGIN
          Maximum value for number of external objects at the beginning
static int MAX_EXTOBJCLASSES
          Maximum value for number of external object classes
static int MAX_EXTOBJPERTIME
          Maximum value for number of external objects per time
static int MAX_MAXTIME
          Maximum value for maximum time
static int MAX_OBJBEGIN
          Maximum value for number of moving objects at the beginning
static int MAX_OBJCLASSES
          Maximum value for number of moving object classes
static int MAX_OBJPERTIME
          Maximum value for number of moving objects per time
static int MIN_MAXTIME
          Minimum value for maximum time
static int NETWORKFILE_ERROR
          Network file error
protected  ObjectClasses objClasses
          The classes of the moving objects.
protected  java.util.Properties properties
          Properties of the data generator
static int PROPERTY_FILE_ERROR
          Property file error
protected static java.lang.String propFilename
          Name of the property file
protected  Reporter reporter
          The reporter.
protected  Time time
          The time object.
protected  int waitingPeriod
          Waiting period between two time stamps in msec (a value larger 0 is required for painting the objects while the computation)
 
Fields inherited from class showmap.ShowNetworkMap
edgesSelectable, net, nodesSelectable, path, start, stop
 
Fields inherited from class showmap.ShowMap
ACTIVE, backgroundColor, baseScaleFactor, COMPLETE, drawableObjects, ENGLISH, GERMAN, infoIsShown, language, mapColor, mapHeight, mapWidth, maxScale, minScale, numOfLayers, panelHeight, panelY, scale, STARTED, STARTING, state, unicodeSupported, UPDATETIME, updateTimer, viewHeight, viewMapX, viewMapY, viewWidth, viewX, viewY
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DataGenerator()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Evaluates action events.
protected  void addComponentsToApplet()
          Adds components to the applet.
protected  void addComponentsToListeners()
          Adds the components to the listeners.
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
          Reacts on an adjustment event.
 void changeComponentPositions()
          Computes the position of the components.
 void compute()
          Computes the dataset.
abstract  EdgeClasses createEdgeClasses(java.util.Properties properties)
          Calls the constructor of EdgeClasses.
abstract  ExternalObjectClasses createExternalObjectClasses(java.util.Properties properties, Time time, DataSpace ds, int numOfClasses)
          Calls the constructor of ExternalObjectClasses.
abstract  ExternalObjectGenerator createExternalObjectGenerator(java.util.Properties properties, Time time, DataSpace dataspace, ExternalObjectClasses classes, int numOfExtObjPerTime, int numAtBeginning)
          Calls the constructor of ExternalObjectGenerator.
abstract  ObjectClasses createObjectClasses(java.util.Properties properties, Time time, DataSpace ds, int numOfClasses, int reportProb, int maxSpeedDivisor)
          Calls the constructor of ObjectClasses.
abstract  ObjectGenerator createObjectGenerator(java.util.Properties properties, Time time, DataSpace ds, Nodes nodes, ObjectClasses objClasses, int numOfObjPerTime, int numOfObjAtBeginning)
          Calls the constructor of ObjectGenerator.
abstract  Reporter createReporter(java.util.Properties properties, DrawableObjects objects)
          Calls the constructor of Reporter.
abstract  ReRoute createReRoute(java.util.Properties properties, Time time, DataSpace ds)
          Calls the constructor of ReRoute.
protected  void deleteObjects()
          Deletes the generated moving and external objects.
protected  java.awt.Button getAddTimeButton()
          Creates / Returns the add time button.
protected  java.awt.Button getComputeButton()
          Creates / Returns the compute button.
protected  java.awt.Button getDeleteButton()
          Creates / Returns the delete button.
protected  java.awt.TextField getExtObjBeginTextField()
          Creates / Returns the external objects at the beginning text field.
protected  java.awt.TextField getExtObjPerTimeTextField()
          Creates / Returns the external objects per time text field.
protected  java.lang.String getInfoText(DrawableObject obj)
          Returns an info text for a drawable object.
protected  java.awt.Label getMaxTimeLabel()
          Creates / returns the maximum time label.
protected  java.awt.TextField getMaxTimeTextField()
          Creates / Returns the maximum time text field.
protected  java.awt.Label getMsdLabel()
          Creates / returns the maximum speed divisor label.
protected  java.awt.TextField getMsdTextField()
          Creates / Returns the maximum speed divisor text field.
protected  java.awt.TextField getNumExtObjClassesTextField()
          Creates / Returns the number of object classes text field.
protected  java.awt.Label getNumObjClassesLabel()
          Creates / returns the number of object classes label.
protected  java.awt.TextField getNumObjClassesTextField()
          Creates / Returns the number of object classes text field.
protected  java.awt.Label getObjBeginLabel()
          Creates / returns the external objects per time label.
protected  java.awt.TextField getObjBeginTextField()
          Creates / Returns the moving objects at the beginning text field.
protected  java.awt.Label getObjPerTimeLabel()
          Creates / returns the objects per time label.
protected  java.awt.TextField getObjPerTimeTextField()
          Creates / Returns the objects per time text field.
static int getProperty(java.util.Properties properties, java.lang.String key, int defaultValue)
          Returns an integer property.
protected  int getProperty(java.lang.String key, int defaultValue)
          Returns an integer property.
protected  java.awt.Label getReportProbLabel()
          Creates / returns the report probabilty label.
protected  java.awt.TextField getReportProbTextField()
          Creates / Returns the report probabilty text field.
protected  java.awt.Scrollbar getTimeScrollbar()
          Creates / Returns the time scrollbar.
protected  int getValueOfTextField(java.awt.TextField tf, int min, int max, boolean enabledAfter)
          Computes the value of the text field and adapt it.
 void init()
          Initializes the data generator.
protected  void initDrawablePresentation()
          Inits the presentation of the network.
protected  void interpretParameters()
          Evaluates the properties of the property file.
static void main(java.lang.String nameOfApplet)
          main entrypoint - starts the part when it is run as an application
protected static java.lang.String makeAbsolute(java.lang.String fileName)
          Makes the file name to an absolute file name
protected  void reportProgress(int time)
          Reports the progress of the generation.
protected  void setState(int state)
          Sets the status of the applet.
protected  void setTime(int actTime)
          Sets the actual time for displaying purposes.
protected  void setTimeScrollbar(int t)
          Sets the position of the time scrollbar and sets the time text field.
 void setViewToPrefinedValue()
          Sets the viewpoint to the value predefined by the parameters.
 void showStatus(java.lang.String text)
          Shows the status.
protected  void startLoadingThread()
          Interprets the properties "urlne" (base name of unzipped network files) or "urlnez" (base name of zipped network files) and starts the loading thread.
 
Methods inherited from class showmap.ShowNetworkMap
computeFastWay, computeShortestWay, computeShortestWays, depictObjectAttributes, getNetwork, isEdge, isNode, readDrawables, resetWay, setEdgeSelectability, setNodeSelectability, setSelectionMode, setStartNode, setStartNodeAsString, setStopNode, setStopNodeAsString
 
Methods inherited from class showmap.ShowMap
checkViewPoint, computeURL, drawMap, findObject, getAppletInfo, getClickInfoLabel, getCopyrightLabel, getEastButton, getIdOfSelectedObject, getIdOfSelectedObjectAsString, getNameLabel, getNameOfSelectedObject, getNorthButton, getParameterInfo, getPressInfoLabel, getScaleLabel, getShiftClickInfoLabel, getSouthButton, getState, getTagLabel, getUnicodeCheckbox, getValueLabel, getWestButton, getZoomInButton, getZoomOutButton, itemStateChanged, loadDrawables, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, moveEast, moveNorth, movePos, movePos, movePos, moveSouth, moveWest, paint, paintDragBox, paintInfo, readDrawables, setMapSize, setUnicode, update, xIntoCoord, yIntoCoord, zoomIn, zoomOut
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected java.util.Properties properties
Properties of the data generator


propFilename

protected static java.lang.String propFilename
Name of the property file


actTime

protected int actTime
Current displayed time (0 = all times)


time

protected Time time
The time object.


dataspace

protected DataSpace dataspace
The data space.


edgeClasses

protected EdgeClasses edgeClasses
The edge classes.


objClasses

protected ObjectClasses objClasses
The classes of the moving objects.


extObjects

protected ExternalObjects extObjects
The external objects.


extObjClasses

protected ExternalObjectClasses extObjClasses
The classes of external objects.


reporter

protected Reporter reporter
The reporter.


PROPERTY_FILE_ERROR

public static final int PROPERTY_FILE_ERROR
Property file error

See Also:
Constant Field Values

APPLICATION_START_ERROR

public static final int APPLICATION_START_ERROR
Application start error

See Also:
Constant Field Values

NETWORKFILE_ERROR

public static final int NETWORKFILE_ERROR
Network file error

See Also:
Constant Field Values

MAX_EXTOBJBEGIN

public static int MAX_EXTOBJBEGIN
Maximum value for number of external objects at the beginning


MAX_EXTOBJCLASSES

public static int MAX_EXTOBJCLASSES
Maximum value for number of external object classes


MAX_EXTOBJPERTIME

public static int MAX_EXTOBJPERTIME
Maximum value for number of external objects per time


MAX_MAXTIME

public static int MAX_MAXTIME
Maximum value for maximum time


MAX_OBJBEGIN

public static int MAX_OBJBEGIN
Maximum value for number of moving objects at the beginning


MAX_OBJCLASSES

public static int MAX_OBJCLASSES
Maximum value for number of moving object classes


MAX_OBJPERTIME

public static int MAX_OBJPERTIME
Maximum value for number of moving objects per time


MIN_MAXTIME

public static int MIN_MAXTIME
Minimum value for maximum time


waitingPeriod

protected int waitingPeriod
Waiting period between two time stamps in msec (a value larger 0 is required for painting the objects while the computation)


frame

protected static java.awt.Frame frame
The frame containing the applet if it is running as application.

Constructor Detail

DataGenerator

public DataGenerator()
Method Detail

main

public static void main(java.lang.String nameOfApplet)
main entrypoint - starts the part when it is run as an application

Parameters:
nameOfApplet - complete name of the calling subclass

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Evaluates action events.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class ShowMap
Parameters:
e - action event

addComponentsToApplet

protected void addComponentsToApplet()
Adds components to the applet.

Overrides:
addComponentsToApplet in class ShowMap

addComponentsToListeners

protected void addComponentsToListeners()
Adds the components to the listeners.

Overrides:
addComponentsToListeners in class ShowMap

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Reacts on an adjustment event.

Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener
Parameters:
e - adjustment event

changeComponentPositions

public void changeComponentPositions()
Computes the position of the components.

Overrides:
changeComponentPositions in class ShowMap

compute

public void compute()
Computes the dataset. Order of initialization:
  1. Time (only first call)
  2. ObjectClasses (only first call)
  3. ExternalObjectClasses (only first call)
  4. ExternalObjectGenerator
  5. ExternalObjects (only first call)
  6. Reporter
  7. WeightManagerForDataGenerator
  8. ReRoute
  9. ObjectGenerator
  10. MovingObjects


createEdgeClasses

public abstract EdgeClasses createEdgeClasses(java.util.Properties properties)
Calls the constructor of EdgeClasses. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - the properties of the generator
Returns:
an object of the class EdgeClasses

createExternalObjectClasses

public abstract ExternalObjectClasses createExternalObjectClasses(java.util.Properties properties,
                                                                  Time time,
                                                                  DataSpace ds,
                                                                  int numOfClasses)
Calls the constructor of ExternalObjectClasses. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - properties of the generator
time - the time object
ds - the data space
numOfClasses - number of external object classes
Returns:
an object of ExternalObjectClasses

createExternalObjectGenerator

public abstract ExternalObjectGenerator createExternalObjectGenerator(java.util.Properties properties,
                                                                      Time time,
                                                                      DataSpace dataspace,
                                                                      ExternalObjectClasses classes,
                                                                      int numOfExtObjPerTime,
                                                                      int numAtBeginning)
Calls the constructor of ExternalObjectGenerator. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - properties of the generator
time - the time object
dataspace - the dataspace
classes - the classes of external objects
numOfExtObjPerTime - number of external objects per time
numAtBeginning - number of external objects at the beginning
Returns:
an external object generator

createObjectClasses

public abstract ObjectClasses createObjectClasses(java.util.Properties properties,
                                                  Time time,
                                                  DataSpace ds,
                                                  int numOfClasses,
                                                  int reportProb,
                                                  int maxSpeedDivisor)
Calls the constructor of ObjectClasses. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - properties of the generator
time - the time object
ds - the data space
numOfClasses - number of object classes
reportProb - report probability (0-1000)
maxSpeedDivisor - maximum speed divisor
Returns:
an object of ObjectClasses

createObjectGenerator

public abstract ObjectGenerator createObjectGenerator(java.util.Properties properties,
                                                      Time time,
                                                      DataSpace ds,
                                                      Nodes nodes,
                                                      ObjectClasses objClasses,
                                                      int numOfObjPerTime,
                                                      int numOfObjAtBeginning)
Calls the constructor of ObjectGenerator. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - properties of the generator
time - the time object
nodes - the nodes of the network
objClasses - description of the object classes
numOfObjPerTime - indicator for the number of objects per time
Returns:
an object generator

createReporter

public abstract Reporter createReporter(java.util.Properties properties,
                                        DrawableObjects objects)
Calls the constructor of Reporter. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - properties of the generator
objects - container of drawable objects
Returns:
the reporter

createReRoute

public abstract ReRoute createReRoute(java.util.Properties properties,
                                      Time time,
                                      DataSpace ds)
Calls the constructor of ReRoute. Must be implemented by a subclass of DataGenerator.

Parameters:
properties - properties of the generator
time - the time object
ds - the data space
Returns:
an object of ReRoute

deleteObjects

protected void deleteObjects()
Deletes the generated moving and external objects.


getAddTimeButton

protected java.awt.Button getAddTimeButton()
Creates / Returns the add time button.

Returns:
add time button

getComputeButton

protected java.awt.Button getComputeButton()
Creates / Returns the compute button.

Returns:
compute button

getDeleteButton

protected java.awt.Button getDeleteButton()
Creates / Returns the delete button.

Returns:
delete button

getExtObjBeginTextField

protected java.awt.TextField getExtObjBeginTextField()
Creates / Returns the external objects at the beginning text field.

Returns:
text field

getExtObjPerTimeTextField

protected java.awt.TextField getExtObjPerTimeTextField()
Creates / Returns the external objects per time text field.

Returns:
text field

getInfoText

protected java.lang.String getInfoText(DrawableObject obj)
Returns an info text for a drawable object.

Overrides:
getInfoText in class ShowNetworkMap
Parameters:
obj - drawable object
Returns:
info text

getMaxTimeLabel

protected java.awt.Label getMaxTimeLabel()
Creates / returns the maximum time label.

Returns:
maximum time label

getMaxTimeTextField

protected java.awt.TextField getMaxTimeTextField()
Creates / Returns the maximum time text field.

Returns:
maximum time text field

getMsdLabel

protected java.awt.Label getMsdLabel()
Creates / returns the maximum speed divisor label.

Returns:
label

getMsdTextField

protected java.awt.TextField getMsdTextField()
Creates / Returns the maximum speed divisor text field.

Returns:
text field

getNumExtObjClassesTextField

protected java.awt.TextField getNumExtObjClassesTextField()
Creates / Returns the number of object classes text field.

Returns:
number of object classes text field

getNumObjClassesLabel

protected java.awt.Label getNumObjClassesLabel()
Creates / returns the number of object classes label.

Returns:
number of object classes label

getNumObjClassesTextField

protected java.awt.TextField getNumObjClassesTextField()
Creates / Returns the number of object classes text field.

Returns:
number of object classes text field

getObjBeginLabel

protected java.awt.Label getObjBeginLabel()
Creates / returns the external objects per time label.

Returns:
label

getObjBeginTextField

protected java.awt.TextField getObjBeginTextField()
Creates / Returns the moving objects at the beginning text field.

Returns:
text field

getObjPerTimeLabel

protected java.awt.Label getObjPerTimeLabel()
Creates / returns the objects per time label.

Returns:
objects per time label

getObjPerTimeTextField

protected java.awt.TextField getObjPerTimeTextField()
Creates / Returns the objects per time text field.

Returns:
objects per time text field

getProperty

protected int getProperty(java.lang.String key,
                          int defaultValue)
Returns an integer property.

Parameters:
key - name of the key
defaultValue - the default value
Returns:
the integer value

getProperty

public static int getProperty(java.util.Properties properties,
                              java.lang.String key,
                              int defaultValue)
Returns an integer property.

Parameters:
properties - the properties
key - name of the key
defaultValue - the default value
Returns:
the integer value

getReportProbLabel

protected java.awt.Label getReportProbLabel()
Creates / returns the report probabilty label.

Returns:
label

getReportProbTextField

protected java.awt.TextField getReportProbTextField()
Creates / Returns the report probabilty text field.

Returns:
text field

getTimeScrollbar

protected java.awt.Scrollbar getTimeScrollbar()
Creates / Returns the time scrollbar.

Returns:
East-Button

getValueOfTextField

protected int getValueOfTextField(java.awt.TextField tf,
                                  int min,
                                  int max,
                                  boolean enabledAfter)
Computes the value of the text field and adapt it.

Parameters:
tf - the text field
min - minimum allowed value
max - maximum allowed value
enabledAfter - should the text filed be enabled after computing the value?
Returns:
integer value of text field

init

public void init()
Initializes the data generator. Initializes the class EdgeClasses.

Overrides:
init in class ShowNetworkMap

initDrawablePresentation

protected void initDrawablePresentation()
Inits the presentation of the network.

Overrides:
initDrawablePresentation in class ShowNetworkMap

interpretParameters

protected void interpretParameters()
Evaluates the properties of the property file.

Overrides:
interpretParameters in class ShowMap

makeAbsolute

protected static java.lang.String makeAbsolute(java.lang.String fileName)
Makes the file name to an absolute file name

Parameters:
fileName - the name of the file

reportProgress

protected void reportProgress(int time)
Reports the progress of the generation.

Parameters:
time - actual time

setState

protected void setState(int state)
Sets the status of the applet. If the status is COMPLETE, the compute button will be enabled. If the maximum time text field has been changed, the computation will automatically be started.

Overrides:
setState in class ShowMap
Parameters:
state - the new state

setTime

protected void setTime(int actTime)
Sets the actual time for displaying purposes.

Parameters:
actTime - int

setTimeScrollbar

protected void setTimeScrollbar(int t)
Sets the position of the time scrollbar and sets the time text field.

Parameters:
t - time

showStatus

public void showStatus(java.lang.String text)
Shows the status.

Overrides:
showStatus in class java.applet.Applet
Parameters:
text - text to be displayed

startLoadingThread

protected void startLoadingThread()
Interprets the properties "urlne" (base name of unzipped network files) or "urlnez" (base name of zipped network files) and starts the loading thread. This method must be overwritten by a superclass, which reads the network from elsewhere.

Overrides:
startLoadingThread in class ShowNetworkMap

setViewToPrefinedValue

public void setViewToPrefinedValue()
Sets the viewpoint to the value predefined by the parameters.

Overrides:
setViewToPrefinedValue in class ShowMap