tit.observation.io.ObservationXMLReader Class Reference

Inheritance diagram for tit.observation.io.ObservationXMLReader:

tit.observation.io.ObservationReader List of all members.

Public Member Functions

 ObservationXMLReader (Document document) throws IOException
Observable getObservation ()
Personality getPersonality ()

Private Member Functions

Element getOnlyChildElement (Element parent, String name) throws NoOnlyChildException

Private Attributes

AdjustablePersonality personality
ReproducableObservation observation

Classes

class  NoOnlyChildException

Detailed Description

Reads an observation from a xml-file.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.observation.io.ObservationXMLReader.ObservationXMLReader ( Document  document  )  throws IOException

Constructs a new ObservationXmlReader which gets its input from a DOM-document.

Parameters:
document A DOM-document containing the info.
Exceptions:
IOException is thrown when an error occurs while reading.


Member Function Documentation

Element tit.observation.io.ObservationXMLReader.getOnlyChildElement ( Element  parent,
String  name 
) throws NoOnlyChildException [private]

Gets the only child with name name from parent

Parameters:
parent The parent node.
name The name of the child.
Exceptions:
NoOnlyChildException Is thrown when parent hasn't got an only child with name name.
Returns:
The only child-element of parent with name name.

Observable tit.observation.io.ObservationXMLReader.getObservation (  ) 

Returns the read Observation.

Returns:
The read Observation.

Implements tit.observation.io.ObservationReader.

Personality tit.observation.io.ObservationXMLReader.getPersonality (  ) 

Returns the read Personality.

Returns:
The read Personality.

Implements tit.observation.io.ObservationReader.


Member Data Documentation

AdjustablePersonality tit.observation.io.ObservationXMLReader.personality [private]

The the read personality data.

ReproducableObservation tit.observation.io.ObservationXMLReader.observation [private]

The the read observation data.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:01 2007 by  doxygen 1.5.1