Java Web Service link :
This web service is temporarily unavailable until July 8th 2016, if you need an earlier access you can contact Maxime Chassaing at this address: maxime.chassaing[@]gmail[dot]com
http://orws2.isima.fr:80/WebService_JSTL/WebService_JSTL?wsdl
Java Web Service - Backup :
This web service is temporarily unavailable until July 8th 2016, if you need earlier an access you can contact Maxime Chassaing at this address: maxime.chassaing[@]gmail[dot]com
http://orws.isima.fr:80/WebService_JSTL/WebService_JSTL?wsdl
webservice.WebServiceJobShop_Service service = new webservice.WebServiceJobShop_Service(); webservice.WebServiceJobShop port = service.getWebServiceJobShopPort();
File f = new File ("La01_0_1.txt"); InputStream ips = new FileInputStream(new File("La01_0_1.txt")); byte[] dataInByte = new byte[ips.available()]; ips.read(dataInByte); ips.close();
Probleme un_prob = port.createProblem(dataInByte);
Solution une_sol = port.generateRandBierwirth(un_prob); une_sol = port.evaluate(un_prob, une_sol);
jTextArea1.append("Makespan : " + une_sol.getCout() + "\n"); jTextArea1.append("Number of Broken Time Lags : " + port.countBrokenTL(une_sol, un_prob) + "\n"); int n = un_prob.getNbjob()*un_prob.getNbmac(); for (int i = 0 ; i < n ; ++i) { jTextArea1.append("Start date of operation "+ i + " : " + une_sol.getDate().get(i) + "\n"); }
byte[] ganttDiagram =port.getGantt(un_prob, une_sol, "problemName"); ByteArrayInputStream bais = new ByteArrayInputStream(ganttDiagram); try { image = ImageIO.read(bais); ImageIO.write( image, "png", new File("src/test_gantt.png")); jTextArea1.append("Gantt diagram is available in src"); } catch (IOException ioe) { }
long biCriteria : Max Value for Time Lags
Operation liste_operation[][] : Values for each operation of the problem
int error : 0 if correctly loaded , -1 else
String strError : String for information
int[] vecteur : The BierwirthVector
int[] date : Start dates of the operations
int[] pere : Fathers of the operations
int[] critique : Critical pathint cost : Cost of the evaluated solution