001: /*
002: * This file is part of the GeOxygene project source files.
003: *
004: * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for
005: * the development and deployment of geographic (GIS) applications. It is a open source
006: * contribution of the COGIT laboratory at the Institut Géographique National (the French
007: * National Mapping Agency).
008: *
009: * See: http://oxygene-project.sourceforge.net
010: *
011: * Copyright (C) 2005 Institut Géographique National
012: *
013: * This library is free software; you can redistribute it and/or modify it under the terms
014: * of the GNU Lesser General Public License as published by the Free Software Foundation;
015: * either version 2.1 of the License, or any later version.
016: *
017: * This library is distributed in the hope that it will be useful, but WITHOUT ANY
018: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
019: * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
020: *
021: * You should have received a copy of the GNU Lesser General Public License along with
022: * this library (see file LICENSE if present); if not, write to the Free Software
023: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
024: *
025: */
026:
027: package fr.ign.cogit.geoxygene.spatial.topocomp;
028:
029: import java.util.List;
030:
031: import fr.ign.cogit.geoxygene.datatools.Geodatabase;
032: import fr.ign.cogit.geoxygene.spatial.geomcomp.GM_Complex;
033: import fr.ign.cogit.geoxygene.spatial.toporoot.TP_Object;
034:
035: //import spatial.topoprim.TP_Boundary;
036:
037: /** Classe non implémentée.
038: * Complexe topologique, en parallèle a GM_Complex.
039: *
040: * @author Thierry Badard & Arnaud Braun
041: * @version 1.0
042: *
043: */
044:
045: class TP_Complex extends TP_Object {
046: /* declaration des variables */
047: protected long TP_ComplexID;
048:
049: /* accesseurs en lecture et en ecriture */
050: long getTP_ComplexID() {
051: return TP_ComplexID;
052: }
053:
054: void setTP_ComplexID(long id) {
055: TP_ComplexID = id;
056: }
057:
058: // mettre le tableau des éléments
059:
060: protected GM_Complex geometry;
061:
062: public GM_Complex getGeometry() {
063: return this .geometry;
064: }
065:
066: protected void setGeometry(GM_Complex value) {
067: this .geometry = value;
068: }
069:
070: public int sizeGeometry() {
071: if (this .geometry == null)
072: return 0;
073: else
074: return 1;
075: }
076:
077: protected TP_Complex maximalComplex;
078:
079: public TP_Complex getMaximalComplex() {
080: return this .maximalComplex;
081: }
082:
083: protected void setMaximalComplex(TP_Complex value) {
084: this .maximalComplex = value;
085: }
086:
087: public int cardMaximalComplex() {
088: if (this .maximalComplex == null)
089: return 0;
090: else
091: return 1;
092: }
093:
094: /** Renvoie TRUE si le complexe est maximal. */
095: public boolean isMaximal() {
096: return false;
097: }
098:
099: /** Renvoie TRUE si le complexe est connnecté. */
100: public boolean isConnected() {
101: return false;
102: }
103:
104: /** Renvoie la frontière de self.*/
105: /* public TP_Boundary boundary(DataSource data) {
106: return null;
107: }*/
108:
109: public List coBoundary(Geodatabase data) {
110: return null;
111: }
112:
113: /**
114: * Constructeur à partir d'une géométrie.
115: */
116: public TP_Complex(final GM_Complex gc) {
117: }
118: }
|