Search in sources :

Example 16 with TrainTypeCategory

use of net.parostroj.timetable.model.TrainTypeCategory in project grafikon by jub77.

the class LSPenaltyTable method createPenaltyTable.

public List<TrainTypeCategory> createPenaltyTable() throws LSException {
    List<TrainTypeCategory> table = new ArrayList<>();
    if (this.categories != null) {
        for (LSTrainTypeCategory lsCategory : this.categories) {
            TrainTypeCategory category = lsCategory.createTrainTypeCategory();
            table.add(category);
        }
    }
    return table;
}
Also used : ArrayList(java.util.ArrayList) TrainTypeCategory(net.parostroj.timetable.model.TrainTypeCategory)

Aggregations

TrainTypeCategory (net.parostroj.timetable.model.TrainTypeCategory)16 TrainType (net.parostroj.timetable.model.TrainType)5 EngineClass (net.parostroj.timetable.model.EngineClass)2 LocalizedString (net.parostroj.timetable.model.LocalizedString)2 ObjectWithId (net.parostroj.timetable.model.ObjectWithId)2 OutputTemplate (net.parostroj.timetable.model.OutputTemplate)2 LSException (net.parostroj.timetable.model.ls.LSException)2 Color (java.awt.Color)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 ZipEntry (java.util.zip.ZipEntry)1 XmlAttribute (javax.xml.bind.annotation.XmlAttribute)1 XmlElement (javax.xml.bind.annotation.XmlElement)1 XmlElements (javax.xml.bind.annotation.XmlElements)1 XmlRootElement (javax.xml.bind.annotation.XmlRootElement)1 XmlType (javax.xml.bind.annotation.XmlType)1 Wrapper (net.parostroj.timetable.gui.wrappers.Wrapper)1 GrafikonException (net.parostroj.timetable.model.GrafikonException)1 LineClass (net.parostroj.timetable.model.LineClass)1