Package jobshop.encodings
Class Encoding
java.lang.Object
jobshop.encodings.Encoding
- Direct Known Subclasses:
ResourceOrder,Schedule
Common class for all encodings.
The only requirement for this class is to provide a conversion from the encoding into a Schedule.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttempts to convert this solution into a schedule.
-
Field Details
-
instance
Problem instance of which this is the solution.
-
-
Constructor Details
-
Encoding
Constructor, that initializes the instance field.
-
-
Method Details
-
toSchedule
Attempts to convert this solution into a schedule.- Returns:
- A empty optional if the solution is not valid. Otherwise the optional will contain a valid schedule of the solution.
-