Class JobSchedulingProblemInput
- java.lang.Object
-
- ai.libs.jaicore.problems.scheduling.JobSchedulingProblemInput
-
- All Implemented Interfaces:
IJobSchedulingInput
public class JobSchedulingProblemInput extends java.lang.Object implements IJobSchedulingInput
-
-
Constructor Summary
Constructors Constructor Description JobSchedulingProblemInput(java.util.Collection<Job> jobs, java.util.Collection<Workcenter> workcenters, java.util.Collection<Operation> operations, java.util.Collection<Machine> machines, JobShopMetric metric, int latestArrivalTime)
JobSchedulingProblemInput(java.util.Map<java.lang.String,Job> jobs, java.util.Map<java.lang.String,Workcenter> workcenters, java.util.Map<java.lang.String,Operation> operations, java.util.Map<java.lang.String,Machine> machines, JobShopMetric metric, int latestArrivalTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
getJob(java.lang.String jobId)
java.util.Collection<Job>
getJobs()
int
getLatestArrivalTime()
Machine
getMachine(java.lang.String machineId)
java.util.Collection<Machine>
getMachines()
JobShopMetric
getMetric()
Operation
getOperation(java.lang.String operationId)
java.util.Collection<Operation>
getOperations()
double
getScoreOfSchedule(ISchedule s)
int
getTotalProcessingTime()
Workcenter
getWorkcenter(java.lang.String workcenterId)
java.util.Collection<Workcenter>
getWorkcenters()
void
printJobs(java.io.OutputStream out)
printJobs writes the job information to an output writervoid
printWorkcenters(java.io.OutputStream out)
-
-
-
Constructor Detail
-
JobSchedulingProblemInput
public JobSchedulingProblemInput(java.util.Collection<Job> jobs, java.util.Collection<Workcenter> workcenters, java.util.Collection<Operation> operations, java.util.Collection<Machine> machines, JobShopMetric metric, int latestArrivalTime)
-
JobSchedulingProblemInput
public JobSchedulingProblemInput(java.util.Map<java.lang.String,Job> jobs, java.util.Map<java.lang.String,Workcenter> workcenters, java.util.Map<java.lang.String,Operation> operations, java.util.Map<java.lang.String,Machine> machines, JobShopMetric metric, int latestArrivalTime)
-
-
Method Detail
-
getJobs
public java.util.Collection<Job> getJobs()
- Specified by:
getJobs
in interfaceIJobSchedulingInput
-
getWorkcenters
public java.util.Collection<Workcenter> getWorkcenters()
- Specified by:
getWorkcenters
in interfaceIJobSchedulingInput
-
getOperations
public java.util.Collection<Operation> getOperations()
- Specified by:
getOperations
in interfaceIJobSchedulingInput
-
getMachines
public java.util.Collection<Machine> getMachines()
- Specified by:
getMachines
in interfaceIJobSchedulingInput
-
getMetric
public JobShopMetric getMetric()
- Specified by:
getMetric
in interfaceIJobSchedulingInput
-
getLatestArrivalTime
public int getLatestArrivalTime()
-
getWorkcenter
public Workcenter getWorkcenter(java.lang.String workcenterId)
- Specified by:
getWorkcenter
in interfaceIJobSchedulingInput
-
getMachine
public Machine getMachine(java.lang.String machineId)
- Specified by:
getMachine
in interfaceIJobSchedulingInput
-
getOperation
public Operation getOperation(java.lang.String operationId)
- Specified by:
getOperation
in interfaceIJobSchedulingInput
-
getJob
public Job getJob(java.lang.String jobId)
- Specified by:
getJob
in interfaceIJobSchedulingInput
-
getScoreOfSchedule
public double getScoreOfSchedule(ISchedule s)
- Specified by:
getScoreOfSchedule
in interfaceIJobSchedulingInput
-
getTotalProcessingTime
public int getTotalProcessingTime()
-
printWorkcenters
public void printWorkcenters(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
printJobs
public void printJobs(java.io.OutputStream out) throws java.io.IOException
printJobs writes the job information to an output writer- Parameters:
out
- BufferedWriter- Throws:
java.io.IOException
-
-