|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--java.applet.Applet
|
+--showmap.ShowMap
|
+--showmap.ShowNetworkMap
|
+--generator2.DataGenerator
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.
| 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 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 |
protected java.util.Properties properties
protected static java.lang.String propFilename
protected int actTime
protected Time time
protected DataSpace dataspace
protected EdgeClasses edgeClasses
protected ObjectClasses objClasses
protected ExternalObjects extObjects
protected ExternalObjectClasses extObjClasses
protected Reporter reporter
public static final int PROPERTY_FILE_ERROR
public static final int APPLICATION_START_ERROR
public static final int NETWORKFILE_ERROR
public static int MAX_EXTOBJBEGIN
public static int MAX_EXTOBJCLASSES
public static int MAX_EXTOBJPERTIME
public static int MAX_MAXTIME
public static int MAX_OBJBEGIN
public static int MAX_OBJCLASSES
public static int MAX_OBJPERTIME
public static int MIN_MAXTIME
protected int waitingPeriod
protected static java.awt.Frame frame
| Constructor Detail |
public DataGenerator()
| Method Detail |
public static void main(java.lang.String nameOfApplet)
nameOfApplet - complete name of the calling subclasspublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class ShowMape - action eventprotected void addComponentsToApplet()
addComponentsToApplet in class ShowMapprotected void addComponentsToListeners()
addComponentsToListeners in class ShowMappublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenere - adjustment eventpublic void changeComponentPositions()
changeComponentPositions in class ShowMappublic void compute()
public abstract EdgeClasses createEdgeClasses(java.util.Properties properties)
properties - the properties of the generator
public abstract ExternalObjectClasses createExternalObjectClasses(java.util.Properties properties,
Time time,
DataSpace ds,
int numOfClasses)
properties - properties of the generatortime - the time objectds - the data spacenumOfClasses - number of external object classes
public abstract ExternalObjectGenerator createExternalObjectGenerator(java.util.Properties properties,
Time time,
DataSpace dataspace,
ExternalObjectClasses classes,
int numOfExtObjPerTime,
int numAtBeginning)
properties - properties of the generatortime - the time objectdataspace - the dataspaceclasses - the classes of external objectsnumOfExtObjPerTime - number of external objects per timenumAtBeginning - number of external objects at the beginning
public abstract ObjectClasses createObjectClasses(java.util.Properties properties,
Time time,
DataSpace ds,
int numOfClasses,
int reportProb,
int maxSpeedDivisor)
properties - properties of the generatortime - the time objectds - the data spacenumOfClasses - number of object classesreportProb - report probability (0-1000)maxSpeedDivisor - maximum speed divisor
public abstract ObjectGenerator createObjectGenerator(java.util.Properties properties,
Time time,
DataSpace ds,
Nodes nodes,
ObjectClasses objClasses,
int numOfObjPerTime,
int numOfObjAtBeginning)
properties - properties of the generatortime - the time objectnodes - the nodes of the networkobjClasses - description of the object classesnumOfObjPerTime - indicator for the number of objects per time
public abstract Reporter createReporter(java.util.Properties properties,
DrawableObjects objects)
properties - properties of the generatorobjects - container of drawable objects
public abstract ReRoute createReRoute(java.util.Properties properties,
Time time,
DataSpace ds)
properties - properties of the generatortime - the time objectds - the data space
protected void deleteObjects()
protected java.awt.Button getAddTimeButton()
protected java.awt.Button getComputeButton()
protected java.awt.Button getDeleteButton()
protected java.awt.TextField getExtObjBeginTextField()
protected java.awt.TextField getExtObjPerTimeTextField()
protected java.lang.String getInfoText(DrawableObject obj)
getInfoText in class ShowNetworkMapobj - drawable object
protected java.awt.Label getMaxTimeLabel()
protected java.awt.TextField getMaxTimeTextField()
protected java.awt.Label getMsdLabel()
protected java.awt.TextField getMsdTextField()
protected java.awt.TextField getNumExtObjClassesTextField()
protected java.awt.Label getNumObjClassesLabel()
protected java.awt.TextField getNumObjClassesTextField()
protected java.awt.Label getObjBeginLabel()
protected java.awt.TextField getObjBeginTextField()
protected java.awt.Label getObjPerTimeLabel()
protected java.awt.TextField getObjPerTimeTextField()
protected int getProperty(java.lang.String key,
int defaultValue)
key - name of the keydefaultValue - the default value
public static int getProperty(java.util.Properties properties,
java.lang.String key,
int defaultValue)
properties - the propertieskey - name of the keydefaultValue - the default value
protected java.awt.Label getReportProbLabel()
protected java.awt.TextField getReportProbTextField()
protected java.awt.Scrollbar getTimeScrollbar()
protected int getValueOfTextField(java.awt.TextField tf,
int min,
int max,
boolean enabledAfter)
tf - the text fieldmin - minimum allowed valuemax - maximum allowed valueenabledAfter - should the text filed be enabled after computing the value?
public void init()
init in class ShowNetworkMapprotected void initDrawablePresentation()
initDrawablePresentation in class ShowNetworkMapprotected void interpretParameters()
interpretParameters in class ShowMapprotected static java.lang.String makeAbsolute(java.lang.String fileName)
fileName - the name of the fileprotected void reportProgress(int time)
time - actual timeprotected void setState(int state)
setState in class ShowMapstate - the new stateprotected void setTime(int actTime)
actTime - intprotected void setTimeScrollbar(int t)
t - timepublic void showStatus(java.lang.String text)
showStatus in class java.applet.Applettext - text to be displayedprotected void startLoadingThread()
startLoadingThread in class ShowNetworkMappublic void setViewToPrefinedValue()
setViewToPrefinedValue in class ShowMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||