|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
JOpt.SDK.Implementation.Optimization
| Nested Class Summary | |
class |
Optimization.WorkerThread
|
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Optimization()
|
|
| Method Summary | |
void |
addDistanceMatrix(double[][] matrix)
|
void |
addElement(INode node)
add a node to the current optimization. |
void |
addElement(IResource resource)
add a resource to the current optimization. |
void |
addElement(IRoute route)
|
void |
addElement(java.util.Properties properties)
add a property to the current optimization. |
void |
addTimeMatrix(double[][] matrix)
|
IRoute |
checkAppointment(INode appointment)
ckecks a desired appointment against the current optimization. |
java.lang.String |
getLicence()
|
double[][] |
getMatrix()
|
double[][] |
getTimeMatrix()
|
IRoute |
insertAppointment(INode appointment)
inserts a desired appointment into the current optimization. |
void |
onAsynchronousOptimizationResult(IOptimizationResult result)
called after the optimization has been finished according to the defined terminating condition |
void |
onProgress(double progress)
called each time when one percentage of the optimization is done |
void |
onProgress(double progress,
double totaldistance,
double costfunction)
called each time when one percentage of the optimization is done |
void |
onProgress(double progress,
double totaldistance1,
double costfunction1,
double totaldistance2,
double costfunction2)
|
void |
run()
|
void |
setLicence(java.lang.String licence)
|
void |
startAsynchronousOptimizationRun()
starts a new optimization background process for all added elements, destroys all previous results |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Optimization()
| Method Detail |
public void addElement(java.util.Properties properties)
IOptimization
addElement in interface IOptimizationproperties - a property to define the optimization's behaviourpublic void addElement(IResource resource)
IOptimization
addElement in interface IOptimizationresource - a resource to perform the optimization's schedulepublic void addElement(INode node)
IOptimization
addElement in interface IOptimizationnode - a node to be visited within the schedulepublic void addElement(IRoute route)
public IRoute checkAppointment(INode appointment)
IOptimization
checkAppointment in interface IOptimizationappointment - a node with a time window
public IRoute insertAppointment(INode appointment)
IOptimization
insertAppointment in interface IOptimizationappointment - a node with a time window
public void startAsynchronousOptimizationRun()
throws JOpt.Licence.LicenceNotFoundException
IOptimization
startAsynchronousOptimizationRun in interface IOptimizationJOpt.Licence.LicenceNotFoundExceptionpublic void run()
run in interface java.lang.Runnablepublic void onAsynchronousOptimizationResult(IOptimizationResult result)
IOptimization
onAsynchronousOptimizationResult in interface IOptimizationresult - contains the optimization result or null if an error occuredpublic void onProgress(double progress)
IOptimization
onProgress in interface IOptimizationprogress -
public void onProgress(double progress,
double totaldistance,
double costfunction)
IOptimization
onProgress in interface IOptimizationprogress - totaldistance - current distance of all routescostfunction - abstract value of the current costfunction
public void onProgress(double progress,
double totaldistance1,
double costfunction1,
double totaldistance2,
double costfunction2)
public void addDistanceMatrix(double[][] matrix)
addDistanceMatrix in interface IOptimizationmatrix - the distance matrix defining all distances between the nodespublic double[][] getMatrix()
getMatrix in interface IOptimizationpublic void addTimeMatrix(double[][] matrix)
addTimeMatrix in interface IOptimizationmatrix - the time matrix defining all travelling times between the nodespublic double[][] getTimeMatrix()
public void setLicence(java.lang.String licence)
public java.lang.String getLicence()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||