org.jscience.architecture.traffic.edit
Class Validation

java.lang.Object
  extended by org.jscience.architecture.traffic.edit.Validation

public class Validation
extends java.lang.Object

This method validates the entire infrastructure It adds IDs for nodes (starting with edgenodes). It adds IDs for Roads and Drivelanes. It checks wheter there are any 'empty' nodes It checks the number of EdgeNodes (should be >2) It adds SPData and SCData. It checks the connectedness of the graph for each type.


Field Summary
protected  SpawnFrequency[] spawnFreq
          DOCUMENT ME!
 
Constructor Summary
Validation(Infrastructure i)
          Creates a new Validation object.
 
Method Summary
protected  void sortNodeArray(Node[] nodes)
          DOCUMENT ME!
 java.util.Vector validate()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spawnFreq

protected SpawnFrequency[] spawnFreq
DOCUMENT ME!

Constructor Detail

Validation

public Validation(Infrastructure i)
Creates a new Validation object.

Parameters:
i - DOCUMENT ME!
Method Detail

sortNodeArray

protected void sortNodeArray(Node[] nodes)
DOCUMENT ME!

Parameters:
nodes - DOCUMENT ME!

validate

public java.util.Vector validate()
                          throws InfraException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
InfraException - DOCUMENT ME!