mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-24 01:15:05 +00:00
Move code into own package
This commit is contained in:
parent
4fa7bf047b
commit
5e3e3b4bad
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik;
|
package edu.kit.informatik.modelrailwaysimulator;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.CommandLine;
|
import edu.kit.informatik.modelrailwaysimulator.ui.CommandLine;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main class.
|
* The main class.
|
@ -1,5 +1,6 @@
|
|||||||
package edu.kit.informatik;
|
package edu.kit.informatik.modelrailwaysimulator;
|
||||||
|
|
||||||
|
import edu.kit.informatik.Terminal;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
@ -1,10 +1,10 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A coach.
|
* A coach.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Diesel engine.
|
* Diesel engine.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Electrical engine.
|
* Electrical engine.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic engine, is usually either diesel, steam or electric.
|
* Generic engine, is usually either diesel, steam or electric.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A freight coach.
|
* A freight coach.
|
@ -1,7 +1,7 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.CoachType;
|
import edu.kit.informatik.modelrailwaysimulator.ui.CoachType;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A passenger coach.
|
* A passenger coach.
|
@ -1,4 +1,4 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic rail that other rails can connect to.
|
* Generic rail that other rails can connect to.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A rolling stock with a specific integer length and couplings. Is usually an engine, train set or coach.
|
* A rolling stock with a specific integer length and couplings. Is usually an engine, train set or coach.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A special coach, used for e.g. firefighting.
|
* A special coach, used for e.g. firefighting.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Steam engine.
|
* Steam engine.
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
@ -1,6 +1,6 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Train set.
|
* Train set.
|
@ -1,4 +1,4 @@
|
|||||||
package edu.kit.informatik.model;
|
package edu.kit.informatik.modelrailwaysimulator.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package edu.kit.informatik.ui;
|
package edu.kit.informatik.modelrailwaysimulator.ui;
|
||||||
|
|
||||||
import edu.kit.informatik.model.Coach;
|
import edu.kit.informatik.modelrailwaysimulator.model.Coach;
|
||||||
import edu.kit.informatik.model.FreightCoach;
|
import edu.kit.informatik.modelrailwaysimulator.model.FreightCoach;
|
||||||
import edu.kit.informatik.model.PassengerCoach;
|
import edu.kit.informatik.modelrailwaysimulator.model.PassengerCoach;
|
||||||
import edu.kit.informatik.model.SpecialCoach;
|
import edu.kit.informatik.modelrailwaysimulator.model.SpecialCoach;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type of a coach.
|
* Type of a coach.
|
@ -1,8 +1,8 @@
|
|||||||
package edu.kit.informatik.ui;
|
package edu.kit.informatik.modelrailwaysimulator.ui;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.command.CommandFactory;
|
import edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interactive simulation runner: gets user inputs and processes specified commands.
|
* Interactive simulation runner: gets user inputs and processes specified commands.
|
@ -1,9 +1,9 @@
|
|||||||
package edu.kit.informatik.ui;
|
package edu.kit.informatik.modelrailwaysimulator.ui;
|
||||||
|
|
||||||
import edu.kit.informatik.model.DieselEngine;
|
import edu.kit.informatik.modelrailwaysimulator.model.DieselEngine;
|
||||||
import edu.kit.informatik.model.ElectricalEngine;
|
import edu.kit.informatik.modelrailwaysimulator.model.ElectricalEngine;
|
||||||
import edu.kit.informatik.model.Engine;
|
import edu.kit.informatik.modelrailwaysimulator.model.Engine;
|
||||||
import edu.kit.informatik.model.SteamEngine;
|
import edu.kit.informatik.modelrailwaysimulator.model.SteamEngine;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type of locomotive. Can be either diesel, steam or electrical.
|
* Type of locomotive. Can be either diesel, steam or electrical.
|
@ -1,4 +1,4 @@
|
|||||||
package edu.kit.informatik.ui;
|
package edu.kit.informatik.modelrailwaysimulator.ui;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown on invalid user input.
|
* Thrown on invalid user input.
|
@ -1,15 +1,15 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.model.Vector2D;
|
import edu.kit.informatik.modelrailwaysimulator.model.Vector2D;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ADD_SWITCH;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ADD_SWITCH;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.VECTOR;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.VECTOR;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to add a switch to the rail network.
|
* Command used to add a switch to the rail network.
|
@ -1,15 +1,15 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.model.Vector2D;
|
import edu.kit.informatik.modelrailwaysimulator.model.Vector2D;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ADD_TRACK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ADD_TRACK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.VECTOR;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.VECTOR;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to add a track to the rail network.
|
* Command used to add a track to the rail network.
|
@ -1,16 +1,16 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.model.RollingStock;
|
import edu.kit.informatik.modelrailwaysimulator.model.RollingStock;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ADD_TRAIN;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ADD_TRAIN;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ROLLING_STOCK_IDENTIFIER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ROLLING_STOCK_IDENTIFIER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to construct a new train or modify an existing train.
|
* Command used to construct a new train or modify an existing train.
|
@ -1,7 +1,7 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command that can be applied to a simulation.
|
* Command that can be applied to a simulation.
|
@ -1,7 +1,7 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.Coach;
|
import edu.kit.informatik.modelrailwaysimulator.model.Coach;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,17 +1,17 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.ui.CoachType;
|
import edu.kit.informatik.modelrailwaysimulator.ui.CoachType;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CoachType.COACH_TYPE;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CoachType.COACH_TYPE;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.BOOL;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.BOOL;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.CREATE_COACH;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.CREATE_COACH;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to create a single coach.
|
* Command used to create a single coach.
|
@ -1,20 +1,20 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.Coach;
|
import edu.kit.informatik.modelrailwaysimulator.model.Coach;
|
||||||
import edu.kit.informatik.model.Engine;
|
import edu.kit.informatik.modelrailwaysimulator.model.Engine;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.EngineType;
|
import edu.kit.informatik.modelrailwaysimulator.ui.EngineType;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.EngineType.ENGINE_TYPE;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.EngineType.ENGINE_TYPE;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ALPHANUMERIC_WORD;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ALPHANUMERIC_WORD;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.BOOL;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.BOOL;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.CREATE_ENGINE;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.CREATE_ENGINE;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to create a single engine.
|
* Command used to create a single engine.
|
@ -1,18 +1,18 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.Coach;
|
import edu.kit.informatik.modelrailwaysimulator.model.Coach;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.TrainSet;
|
import edu.kit.informatik.modelrailwaysimulator.model.TrainSet;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ALPHANUMERIC_WORD;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ALPHANUMERIC_WORD;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.BOOL;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.BOOL;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.CREATE_TRAIN_SET;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.CREATE_TRAIN_SET;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to add a new train set.
|
* Command used to add a new train set.
|
@ -1,15 +1,15 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CommandLine.OK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CommandLine.OK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.DELETE_ROLLING_STOCK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.DELETE_ROLLING_STOCK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.ROLLING_STOCK_IDENTIFIER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.ROLLING_STOCK_IDENTIFIER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to delete rolling stock.
|
* Command used to delete rolling stock.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CommandLine.OK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CommandLine.OK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.DELETE_TRACK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.DELETE_TRACK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to delete a track or switch.
|
* Command used to delete a track or switch.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CommandLine.OK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CommandLine.OK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.DELETE_TRAIN;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.DELETE_TRAIN;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to delete a train, without deleting rolling stock of the train.
|
* Command used to delete a train, without deleting rolling stock of the train.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.LIST_COACHES;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.LIST_COACHES;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to print a list of coaches.
|
* Command used to print a list of coaches.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.LIST_ENGINES;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.LIST_ENGINES;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to print a list of engines.
|
* Command used to print a list of engines.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.LIST_TRACKS;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.LIST_TRACKS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to print a list of tracks and switches.
|
* Command used to print a list of tracks and switches.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.LIST_TRAIN_SETS;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.LIST_TRAIN_SETS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to print a list of train sets on the terminal.
|
* Command used to print a list of train sets on the terminal.
|
@ -1,12 +1,12 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.SortedMap;
|
import java.util.SortedMap;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.LIST_TRAINS;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.LIST_TRAINS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to print a list of trains on the terminal.
|
* Command used to print a list of trains on the terminal.
|
@ -1,17 +1,17 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.model.Vector2D;
|
import edu.kit.informatik.modelrailwaysimulator.model.Vector2D;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CommandLine.OK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CommandLine.OK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.PUT_TRAIN;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.PUT_TRAIN;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.VECTOR;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.VECTOR;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to put a train on the rail network.
|
* Command used to put a train on the rail network.
|
@ -1,17 +1,17 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.model.Vector2D;
|
import edu.kit.informatik.modelrailwaysimulator.model.Vector2D;
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CommandLine.OK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CommandLine.OK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.SET_SWITCH;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.SET_SWITCH;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.VECTOR;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.VECTOR;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to specify the position a switch is set to.
|
* Command used to specify the position a switch is set to.
|
@ -1,11 +1,11 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.SHOW_TRAIN;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.SHOW_TRAIN;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to print a train as ASCII art.
|
* Command used to print a train as ASCII art.
|
@ -1,17 +1,17 @@
|
|||||||
package edu.kit.informatik.ui.command;
|
package edu.kit.informatik.modelrailwaysimulator.ui.command;
|
||||||
|
|
||||||
import edu.kit.informatik.Terminal;
|
import edu.kit.informatik.Terminal;
|
||||||
import edu.kit.informatik.model.ModelRailwaySimulation;
|
import edu.kit.informatik.modelrailwaysimulator.model.ModelRailwaySimulation;
|
||||||
import edu.kit.informatik.model.Vector2D;
|
import edu.kit.informatik.modelrailwaysimulator.model.Vector2D;
|
||||||
import edu.kit.informatik.ui.InvalidInputException;
|
import edu.kit.informatik.modelrailwaysimulator.ui.InvalidInputException;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
|
|
||||||
import static edu.kit.informatik.ui.CommandLine.OK;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.CommandLine.OK;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.NUMBER;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.NUMBER;
|
||||||
import static edu.kit.informatik.ui.command.CommandFactory.STEP;
|
import static edu.kit.informatik.modelrailwaysimulator.ui.command.CommandFactory.STEP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command used to advance the simulation.
|
* Command used to advance the simulation.
|
Loading…
Reference in New Issue
Block a user