edu.bonn.xulu.plugin.io.misc
Class CASettlementAreaListFactory_ShapeFile

java.lang.Object
  extended by edu.bonn.xulu.io.AbstractFactory
      extended by edu.bonn.xulu.plugin.io.misc.CAAreaListFactory_ShapeFile
          extended by edu.bonn.xulu.plugin.io.misc.CASettlementAreaListFactory_ShapeFile
All Implemented Interfaces:
Factory, ImportFactory

public class CASettlementAreaListFactory_ShapeFile
extends CAAreaListFactory_ShapeFile

Diese Factory importiert Instanzen des Datentyps CASettlementArea aus einem Shape-File. Dessen Features muessen folgende Attribute besitzen:

Attribut Datentyp Beschreibung
Default-Geometry Punkt Lat/Lon-Koordinate der Area
Name String Name der Area
Inhabits double Einwohneranzahl zum Zeitpunkt 0 (kann auch direkt fuer Bedarf genutzt werden)
growthrate double Wachstumsrate der Einwohner (in %)
demand double Flaechen-Bedarf pro Einwohner (in qm)
Aus den importierten CASettlementArea-Objekten wird anschliessend ein XuluObject erstellt, das aus einer ListProperty besteht, in der die Areas gespeichert werden.

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
 
Fields inherited from class edu.bonn.xulu.plugin.io.misc.CAAreaListFactory_ShapeFile
caAreaType
 
Fields inherited from class edu.bonn.xulu.io.AbstractFactory
name
 
Constructor Summary
CASettlementAreaListFactory_ShapeFile()
          Erzeugt einen neue Factory.
 
Method Summary
protected  CASettlementArea interpreteFeature(int featNo, SimpleFeature f)
          Erzeugt eine Instanz vom CASettlementArea und befuellt diese mit Daten aus dem Feature.
protected  CASettlementArea interpreteFeature(int featNo, SimpleFeature f, CAArea settArea)
          Erzeugt eine Instanz vom CASettlementArea und befuellt diese mit Daten aus dem Feature.
 
Methods inherited from class edu.bonn.xulu.plugin.io.misc.CAAreaListFactory_ShapeFile
getImportSourceType, getImportType, importObject
 
Methods inherited from class edu.bonn.xulu.io.AbstractFactory
checkExportDestinationObject, checkImportSourceObject, equals, equals, getInstantiationFactoryFromRegistry, getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.bonn.xulu.io.Factory
equals
 

Constructor Detail

CASettlementAreaListFactory_ShapeFile

public CASettlementAreaListFactory_ShapeFile()
Erzeugt einen neue Factory.

Method Detail

interpreteFeature

protected CASettlementArea interpreteFeature(int featNo,
                                             SimpleFeature f)
Erzeugt eine Instanz vom CASettlementArea und befuellt diese mit Daten aus dem Feature.

Overrides:
interpreteFeature in class CAAreaListFactory_ShapeFile
Parameters:
featNo - Nummer des Features (beginnend bei 0)
f - zu interpretierendes Feature

interpreteFeature

protected CASettlementArea interpreteFeature(int featNo,
                                             SimpleFeature f,
                                             CAArea settArea)
Erzeugt eine Instanz vom CASettlementArea und befuellt diese mit Daten aus dem Feature.

Overrides:
interpreteFeature in class CAAreaListFactory_ShapeFile
Parameters:
featNo - Nummer des Features (beginnend bei 0)
f - zu interpretierendes Feature
settArea - Area in die die Informationen hineingeschrieben werden (wenn null, wird eine neue CASettlementArea-Instanz erzeugt)
Throws:
IllegalArgumentException - wenn settArea keine Instanz von CASettlementArea ist