Commit 39ccf977 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove abandoned API accept() and adopt().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36946 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02d4bfe5
...@@ -111,25 +111,3 @@ class CategoryMembershipEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -111,25 +111,3 @@ class CategoryMembershipEquivalenceTester(Predicate, EquivalenceTesterMixin):
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
prevision_value = prevision_movement.getPropertyList(tested_property) prevision_value = prevision_movement.getPropertyList(tested_property)
return {tested_property:prevision_value} return {tested_property:prevision_value}
def accept(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def adopt(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
...@@ -108,25 +108,3 @@ class DateTimeEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -108,25 +108,3 @@ class DateTimeEquivalenceTester(Predicate, EquivalenceTesterMixin):
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
prevision_value = prevision_movement.getProperty(tested_property) prevision_value = prevision_movement.getProperty(tested_property)
return {tested_property:prevision_value} return {tested_property:prevision_value}
def accept(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def adopt(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
...@@ -181,27 +181,5 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -181,27 +181,5 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin):
prevision_value = self._getPropertyValue(prevision_movement, tested_property) prevision_value = self._getPropertyValue(prevision_movement, tested_property)
return {tested_property:prevision_value} return {tested_property:prevision_value}
def accept(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def adopt(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def _getPropertyValue(self, document, property): def _getPropertyValue(self, document, property):
return document.getProperty(property) return document.getProperty(property)
...@@ -96,25 +96,3 @@ class StringEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -96,25 +96,3 @@ class StringEquivalenceTester(Predicate, EquivalenceTesterMixin):
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
prevision_value = prevision_movement.getProperty(tested_property) prevision_value = prevision_movement.getProperty(tested_property)
return {tested_property:prevision_value} return {tested_property:prevision_value}
def accept(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def adopt(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
...@@ -123,25 +123,3 @@ class VariationEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -123,25 +123,3 @@ class VariationEquivalenceTester(Predicate, EquivalenceTesterMixin):
prevision_value = prevision_movement.getProperty(tested_property) prevision_value = prevision_movement.getProperty(tested_property)
property_dict[tested_property] = prevision_value property_dict[tested_property] = prevision_value
return property_dict return property_dict
def accept(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def adopt(self, simulation_movement):
"""
Copies the properties handled by the divergence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
...@@ -149,23 +149,3 @@ class IDivergenceTester(Interface): ...@@ -149,23 +149,3 @@ class IDivergenceTester(Interface):
a simulation movement to the relevant level of a simulation movement to the relevant level of
delivery / line / cell. delivery / line / cell.
""" """
def accept(simulation_movement):
"""
Copies the properties handled by the divergence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
def adopt(simulation_movement):
"""
Copies the properties handled by the divergence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
...@@ -149,23 +149,3 @@ class IEquivalenceTester(Interface): ...@@ -149,23 +149,3 @@ class IEquivalenceTester(Interface):
a simulation movement to the relevant level of a simulation movement to the relevant level of
delivery / line / cell. delivery / line / cell.
""" """
def accept(simulation_movement):
"""
Copies the properties handled by the equivalence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
def adopt(simulation_movement):
"""
Copies the properties handled by the equivalence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
...@@ -203,25 +203,3 @@ class EquivalenceTesterMixin: ...@@ -203,25 +203,3 @@ class EquivalenceTesterMixin:
decision_movement -- a delivery movement (decision) decision_movement -- a delivery movement (decision)
""" """
raise NotImplementedError raise NotImplementedError
def accept(self, simulation_movement):
"""
Copies the properties handled by the equivalence tester
from the related delivery movement to simulation_movement.
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
def adopt(self, simulation_movement):
"""
Copies the properties handled by the equivalence tester
from simulation_movement to the related delivery movement
NOTE: the future existence of this method is still unknown
because it is likely to be implemented in TargetSolver
instead.
"""
raise NotImplementedError
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment