Skip to content

Commit

Permalink
Renamed all Advanced Constraints Examples, Added new Advanced Constra…
Browse files Browse the repository at this point in the history
…int Test Case
  • Loading branch information
r4m-juan committed Feb 17, 2022
1 parent 7ad9489 commit 57c4a06
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 215 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.route4me</groupId>
<artifactId>route4me-java-sdk</artifactId>
<version>1.6.8</version>
<version>1.6.9</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

public class AdvancedConstraintsExample12 {
public class DriversSchedulesWithTerritoriesAndRetailLocation {

public static List<Address> readAddressesFromCSV(String filename, List<String> zone1, List<String> zone2, List<String> zone3, Integer serviceTime) {
List<Address> addresses = new ArrayList<>();
Expand Down Expand Up @@ -63,9 +63,9 @@ public static List<Address> readAddressesFromCSV(String filename, List<String> z
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample12.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversSchedulesWithTerritoriesAndRetailLocation.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample12.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversSchedulesWithTerritoriesAndRetailLocation.class.getName()).log(Level.SEVERE, null, ex);
}

return addresses;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

public class AdvancedConstraintsExample8 {
public class DriversScheduleswithTerritoriesV1 {

public static List<Address> readAddressesFromCSV(String filename, List<String> zone1, List<String> zone2, List<String> zone3, Integer serviceTime) {
List<Address> addresses = new ArrayList<>();
Expand All @@ -50,9 +50,9 @@ public static List<Address> readAddressesFromCSV(String filename, List<String> z
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample8.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV1.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample8.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV1.class.getName()).log(Level.SEVERE, null, ex);
}

return addresses;
Expand Down Expand Up @@ -114,9 +114,9 @@ public static void main(String[] args) {
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample8.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV1.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample8.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV1.class.getName()).log(Level.SEVERE, null, ex);
}


Expand Down Expand Up @@ -152,9 +152,9 @@ public static void main(String[] args) {
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample8.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV1.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample8.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV1.class.getName()).log(Level.SEVERE, null, ex);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

public class AdvancedConstraintsExample7 {
public class DriversScheduleswithTerritoriesV2 {

public static List<Address> readAddressesFromCSV(String filename, List<String> zone1, List<String> zone2, List<String> zone3, Integer serviceTime) {
List<Address> addresses = new ArrayList<>();
Expand Down Expand Up @@ -63,9 +63,9 @@ public static List<Address> readAddressesFromCSV(String filename, List<String> z
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample7.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV2.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample7.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV2.class.getName()).log(Level.SEVERE, null, ex);
}

return addresses;
Expand Down Expand Up @@ -156,9 +156,9 @@ public static void main(String[] args) {
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample7.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV2.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample7.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV2.class.getName()).log(Level.SEVERE, null, ex);
}


Expand Down Expand Up @@ -214,9 +214,9 @@ public static void main(String[] args) {
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample7.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV2.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample7.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV2.class.getName()).log(Level.SEVERE, null, ex);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

public class AdvancedConstraintsExample6 {
public class DriversScheduleswithTerritoriesV3 {

public static List<Address> readAddressesFromCSV(String filename, List<String> zone1, List<String> zone2, List<String> zone3, Integer serviceTime) {
List<Address> addresses = new ArrayList<>();
Expand Down Expand Up @@ -63,9 +63,9 @@ public static List<Address> readAddressesFromCSV(String filename, List<String> z
}

} catch (FileNotFoundException ex) {
Logger.getLogger(AdvancedConstraintsExample6.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV3.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(AdvancedConstraintsExample6.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(DriversScheduleswithTerritoriesV3.class.getName()).log(Level.SEVERE, null, ex);
}

return addresses;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.List;


public class AdvancedConstraintsExample5 {
public class DriversScheduleswithTerritoriesV4 {

//**********************************************************************
// TEST CASE: Drivers Schedules with Territories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.List;


public class AdvancedConstraintsExample4 {
public class DriversSkills {

//**********************************************************************
// TEST CASE: Driver's Skills
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import java.util.List;


public class AdvancedConstraintsExample3 {
public class DriversTimeShift {

//**********************************************************************
// TEST CASE: Driver's Shift
// TEST CASE: Driver's Time Shift
//**********************************************************************

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @author juan
*/
public class AdvancedConstraintsExample13 {
public class OptimizationUsingTerritoriesAddresses {



Expand Down Expand Up @@ -151,7 +151,7 @@ public static void main(String[] args) {
e.printStackTrace();
}
} catch (APIException ex) {
Logger.getLogger(AdvancedConstraintsExample13.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(OptimizationUsingTerritoriesAddresses.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
Loading

0 comments on commit 57c4a06

Please sign in to comment.