Commit ebcdc179 authored by Łukasz Nowak's avatar Łukasz Nowak

- set proper method name

 - update copyrights and set encoding on files


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d38a437b
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 200é-2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
...@@ -41,9 +42,9 @@ class Copy(DeliverySolver): ...@@ -41,9 +42,9 @@ class Copy(DeliverySolver):
No ASolver will be required afterwards No ASolver will be required afterwards
""" """
def solve(self, movement): def solveMovement(self, movement):
""" """
Solve a delivery Solves a movement
""" """
movement.setQuantity(movement.getSimulationQuantity()) movement.setQuantity(movement.getSimulationQuantity())
......
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002-2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
...@@ -39,14 +40,14 @@ class DeliverySolver: ...@@ -39,14 +40,14 @@ class DeliverySolver:
self.simulation_tool = simulation_tool self.simulation_tool = simulation_tool
self.__dict__.update(kw) self.__dict__.update(kw)
def solve(self, movement): def solveMovement(self, movement):
""" """
Solve a delivery movement Solves a delivery movement
""" """
def solveDelivery(self, delivery): def solveDelivery(self, delivery):
""" """
Solve the delivery itself Solves the delivery itself
""" """
# Default method is to adopt target dates # Default method is to adopt target dates
delivery.setStartDate(delivery.getTargetStartDate()) delivery.setStartDate(delivery.getTargetStartDate())
......
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved. # Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
...@@ -31,14 +32,14 @@ from DeliverySolver import DeliverySolver ...@@ -31,14 +32,14 @@ from DeliverySolver import DeliverySolver
class Distribute(DeliverySolver): class Distribute(DeliverySolver):
""" """
Update new values equaly on Simulation Movements. Update new values equally on Simulation Movements.
""" """
def solveDelivery(self, delivery): def solveDelivery(self, delivery):
for movement in delivery.getMovementList(): for movement in delivery.getMovementList():
self.solve(movement) self.solve(movement)
def solve(self, movement): def solveMovement(self, movement):
""" """
Solve a delivery by reducing / increasing each simulation movement Solve a delivery by reducing / increasing each simulation movement
it relates to it relates to
......
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