Class AbstractTopologyRule

java.lang.Object
org.gvsig.topology.lib.spi.AbstractTopologyRule
All Implemented Interfaces:
Cloneable, org.gvsig.json.SupportFromJson, org.gvsig.json.SupportJson, org.gvsig.json.SupportToJson, org.gvsig.tools.lang.Cloneable, TopologyRule

public abstract class AbstractTopologyRule extends Object implements TopologyRule
Author:
jjdelcerro
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • dataSet1

      public String dataSet1
    • actions

      protected List<TopologyRuleAction> actions
  • Constructor Details

    • AbstractTopologyRule

      protected AbstractTopologyRule()
    • AbstractTopologyRule

      protected AbstractTopologyRule(TopologyRuleFactory factory, double tolerance, String dataSet1, String dataSet2)
    • AbstractTopologyRule

      protected AbstractTopologyRule(TopologyRuleFactory factory, double tolerance, String dataSet1)
  • Method Details

    • clone

      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Specified by:
      clone in interface TopologyRule
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getPlan

      public TopologyPlan getPlan()
      Specified by:
      getPlan in interface TopologyRule
    • setPlan

      public void setPlan(TopologyPlan plan)
    • setDataSetResolver

      public void setDataSetResolver(TopologyDataSetResolver resolver)
      Specified by:
      setDataSetResolver in interface TopologyRule
    • getFactory

      public TopologyRuleFactory getFactory()
      Specified by:
      getFactory in interface TopologyRule
    • getName

      public String getName()
      Specified by:
      getName in interface TopologyRule
    • getId

      public String getId()
      Specified by:
      getId in interface TopologyRule
    • addAction

      public final void addAction(TopologyRuleAction action)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDataSet1

      public TopologyDataSet getDataSet1()
      Specified by:
      getDataSet1 in interface TopologyRule
    • getDataSet2

      public TopologyDataSet getDataSet2()
      Specified by:
      getDataSet2 in interface TopologyRule
    • getTolerance

      public double getTolerance()
      Specified by:
      getTolerance in interface TopologyRule
    • getActions

      public List<TopologyRuleAction> getActions()
      Specified by:
      getActions in interface TopologyRule
    • getAction

      public TopologyRuleAction getAction(String id)
      Specified by:
      getAction in interface TopologyRule
    • getSteps

      public long getSteps()
      Specified by:
      getSteps in interface TopologyRule
    • execute

      public void execute(org.gvsig.tools.task.SimpleTaskStatus taskStatus, TopologyReport report)
      Specified by:
      execute in interface TopologyRule
    • check

      protected void check(org.gvsig.tools.task.SimpleTaskStatus taskStatus, TopologyReport report, org.gvsig.fmap.dal.feature.Feature feature) throws Exception
      Throws:
      Exception
    • toJson

      public javax.json.JsonObject toJson()
      Specified by:
      toJson in interface org.gvsig.json.SupportToJson
    • toJsonBuilder

      public org.gvsig.json.JsonObjectBuilder toJsonBuilder()
      Specified by:
      toJsonBuilder in interface org.gvsig.json.SupportToJson
    • fromJson

      public void fromJson(javax.json.JsonObject json)
      Specified by:
      fromJson in interface org.gvsig.json.SupportFromJson
    • setParameters

      public void setParameters(org.gvsig.tools.dynobject.DynObject parameters)
      Specified by:
      setParameters in interface TopologyRule
    • getParameters

      public org.gvsig.tools.dynobject.DynObject getParameters()
      Specified by:
      getParameters in interface TopologyRule
    • substract

      protected void substract(org.gvsig.fmap.dal.feature.FeatureReference featRef, org.gvsig.fmap.geom.Geometry geomToSubstract, TopologyDataSet dataSet) throws org.gvsig.fmap.dal.exception.DataException, org.gvsig.fmap.geom.operation.GeometryOperationException, org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
      org.gvsig.fmap.geom.operation.GeometryOperationException
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
    • createNewFeature

      protected void createNewFeature(org.gvsig.fmap.dal.feature.FeatureReference featRef, TopologyDataSet dataSet, org.gvsig.fmap.geom.Geometry newGeom) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • addCodeException

      protected void addCodeException(TopologyReport report, org.gvsig.fmap.dal.feature.Feature feature1, Exception ex)