org.jscience.architecture.traffic.infrastructure
Class DestFrequency

java.lang.Object
  extended by org.jscience.architecture.traffic.infrastructure.DestFrequency
All Implemented Interfaces:
XMLSerializable

public class DestFrequency
extends java.lang.Object
implements XMLSerializable

Contains a destination frequency for a certain roaduser type.


Field Summary
 float freq
          DOCUMENT ME!
protected  java.lang.String parentName
          DOCUMENT ME!
 int ruType
          DOCUMENT ME!
 
Constructor Summary
DestFrequency()
          Empty constructor for loading
DestFrequency(int _ruType, float _freq)
          Creates an instance initiated with given parameters.
 
Method Summary
 java.lang.String getXMLName()
          DOCUMENT ME!
 void load(XMLElement myElement, XMLLoader loader)
          DOCUMENT ME!
 void saveChilds(XMLSaver saver)
          DOCUMENT ME!
 XMLElement saveSelf()
          DOCUMENT ME!
 void setParentName(java.lang.String newParentName)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ruType

public int ruType
DOCUMENT ME!


freq

public float freq
DOCUMENT ME!


parentName

protected java.lang.String parentName
DOCUMENT ME!

Constructor Detail

DestFrequency

public DestFrequency()
Empty constructor for loading


DestFrequency

public DestFrequency(int _ruType,
                     float _freq)
Creates an instance initiated with given parameters.

Parameters:
_ruType - Roaduser type.
_freq - Initial frequency.
Method Detail

load

public void load(XMLElement myElement,
                 XMLLoader loader)
          throws XMLTreeException,
                 java.io.IOException,
                 XMLInvalidInputException
DOCUMENT ME!

Specified by:
load in interface XMLSerializable
Parameters:
myElement - DOCUMENT ME!
loader - DOCUMENT ME!
Throws:
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!

saveSelf

public XMLElement saveSelf()
                    throws XMLCannotSaveException
DOCUMENT ME!

Specified by:
saveSelf in interface XMLSerializable
Returns:
DOCUMENT ME!
Throws:
XMLCannotSaveException - DOCUMENT ME!

saveChilds

public void saveChilds(XMLSaver saver)
                throws XMLTreeException,
                       java.io.IOException,
                       XMLCannotSaveException
DOCUMENT ME!

Specified by:
saveChilds in interface XMLSerializable
Parameters:
saver - DOCUMENT ME!
Throws:
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLCannotSaveException - DOCUMENT ME!

getXMLName

public java.lang.String getXMLName()
DOCUMENT ME!

Specified by:
getXMLName in interface XMLSerializable
Returns:
DOCUMENT ME!

setParentName

public void setParentName(java.lang.String newParentName)
DOCUMENT ME!

Specified by:
setParentName in interface XMLSerializable
Parameters:
newParentName - DOCUMENT ME!