Menu

#11 Configurable names for values of Direction enum

2.0
open
nobody
None
2012-11-02
2012-11-02
Martin Luy
No

By the nature of locks, the Direction enum has two values. These are TOWARDS_SEA and TOWARDS_CANAL currently. However not every water lock separates some sea and canal.

  • Rename these variables to something more general (maybe UPWARDS and DOWNWARDS).
  • Make the values of the "commonName" attribute configurable per LockLocation by XML parameters.
  • This will also require changing the solution display and renaming some methods, e.g. in the objective function.

Discussion

  • Martin Luy

    Martin Luy - 2012-11-02
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,5 @@
    -By the nature of locks, the Direction enum has two values. These are TOWARDS_SEA and TOWARDS_CANAL currently. However not every water lock separates some sea and canal. So rename these variables, and make the values of the "commonName" attribute configurable by XML parameters.
    +By the nature of locks, the Direction enum has two values. These are TOWARDS_SEA and TOWARDS_CANAL currently. However not every water lock separates some sea and canal.
    +
    +* Rename these variables to something more general (maybe UPWARDS and DOWNWARDS).
    +* Make the values of the "commonName" attribute configurable by XML parameters.
    +* This will also require changing the solution display and renaming some methods, e.g. in the objective function.
    
     
  • Martin Luy

    Martin Luy - 2012-11-02
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     By the nature of locks, the Direction enum has two values. These are TOWARDS_SEA and TOWARDS_CANAL currently. However not every water lock separates some sea and canal.
    
     * Rename these variables to something more general (maybe UPWARDS and DOWNWARDS).
    -* Make the values of the "commonName" attribute configurable by XML parameters.
    +* Make the values of the "commonName" attribute configurable per LockLocation by XML parameters.
     * This will also require changing the solution display and renaming some methods, e.g. in the objective function.
    
     

Log in to post a comment.