root / trunk / libraries / libTopology / uml-jude / org / gvsig / topology / TopologyError.java @ 13263
History | View | Annotate | Download (1.29 KB)
1 |
package org.gvsig.topology; |
---|---|
2 |
|
3 |
import com.iver.cit.gvsig.fmap.core.IFeature; |
4 |
|
5 |
|
6 |
/**
|
7 |
*Error produced when one or many features ?
|
8 |
*violates a topology rule.
|
9 |
*/
|
10 |
public class TopologyError implements IFeature { |
11 |
|
12 |
/**
|
13 |
*rule which has been violated
|
14 |
*/
|
15 |
private AbstractTopologyRule violatedRule;
|
16 |
|
17 |
/**
|
18 |
*features of the source layer that
|
19 |
*violates the rule (if the rule is a self-rule,
|
20 |
*the error will only have source layer features)
|
21 |
*/
|
22 |
private IFeature[] sourceLyrFeatures; |
23 |
|
24 |
/**
|
25 |
*features of the destination layer
|
26 |
*that violate the rule (only in rules between
|
27 |
*two layers)
|
28 |
*/
|
29 |
private IFeature[] destinationLyrFeatures; |
30 |
|
31 |
private boolean exception; |
32 |
|
33 |
public void setViolatedRule(AbstractTopologyRule violatedRule) { |
34 |
} |
35 |
|
36 |
public AbstractTopologyRule getViolatedRule() {
|
37 |
return null; |
38 |
} |
39 |
|
40 |
public void setSourceLyrFeatures(IFeature[] sourceLyrFeatures) { |
41 |
} |
42 |
|
43 |
public IFeature[] getSourceLyrFeatures() { |
44 |
return null; |
45 |
} |
46 |
|
47 |
public void setDestinationLyrFeatures(IFeature[] destinationLyrFeatures) { |
48 |
} |
49 |
|
50 |
public IFeature[] getDestinationLyrFeatures() { |
51 |
return null; |
52 |
} |
53 |
|
54 |
/**
|
55 |
*Ruturns the type of geometry of the error
|
56 |
*/
|
57 |
public int getShapeType() { |
58 |
return 0; |
59 |
} |
60 |
|
61 |
public void setException(boolean exception) { |
62 |
} |
63 |
|
64 |
public boolean isException() { |
65 |
return false; |
66 |
} |
67 |
|
68 |
} |
69 |
|