parent
db6bed2d2c
commit
e1d72c318d
@ -1,3 +1,6 @@
|
||||
target/
|
||||
.idea/
|
||||
SENG202.iml
|
||||
.classpath
|
||||
.project
|
||||
.settings/
|
||||
@ -1,13 +0,0 @@
|
||||
package seng202.group9;
|
||||
|
||||
/**
|
||||
* Hello world!
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package seng202.group9.Controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.stage.Stage;
|
||||
import seng202.group9.GUI.MainMenuBar;
|
||||
|
||||
/**
|
||||
* Main Application frame of the Flight Data Analyser.
|
||||
*
|
||||
*/
|
||||
public class App extends Application
|
||||
{
|
||||
ArrayList<DatasetController> Datasets = new ArrayList<DatasetController>();
|
||||
|
||||
public static void main( String[] args )
|
||||
{
|
||||
launch(args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts the application
|
||||
* @param primaryStage main "stage" of the program
|
||||
* @see The last sessions menu or the getting started page.
|
||||
*/
|
||||
@Override
|
||||
public void start(Stage primaryStage) {
|
||||
BorderPane root = new BorderPane(); //root panel
|
||||
Scene scene = new Scene(root,400,400);
|
||||
//create the menu
|
||||
MainMenuBar menuBar = new MainMenuBar();
|
||||
root.setTop(menuBar.getmenuBar());
|
||||
//TODO add the getting started page here.
|
||||
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.show();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package seng202.group9.Controller;
|
||||
|
||||
public class DatasetController {
|
||||
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Airline {
|
||||
private int ID;
|
||||
private String IATA;
|
||||
private String ICAO;
|
||||
private String name;
|
||||
private String alias;
|
||||
private String callSign;
|
||||
private String active;
|
||||
private Country country;
|
||||
private ArrayList<Route> routes;
|
||||
|
||||
public Airline(int ID, String IATA, String ICAO, String name, String alias, String callSign, String active, Country country){
|
||||
this.ID = ID;
|
||||
this.IATA = IATA;
|
||||
this.ICAO = ICAO;
|
||||
this.name = name;
|
||||
this.alias = alias;
|
||||
this.callSign = callSign;
|
||||
this.active = active;
|
||||
this.country = country;
|
||||
routes = new ArrayList<Route>();
|
||||
}
|
||||
|
||||
public int getID(){
|
||||
return ID;
|
||||
}
|
||||
|
||||
public String getIATA(){
|
||||
return IATA;
|
||||
}
|
||||
|
||||
public String getICAO(){
|
||||
return ICAO;
|
||||
}
|
||||
|
||||
public String getName(){
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getAlias(){
|
||||
return alias;
|
||||
}
|
||||
|
||||
public String getCallSign(){
|
||||
return callSign;
|
||||
}
|
||||
|
||||
public String getActive(){
|
||||
return active;
|
||||
}
|
||||
|
||||
public Country getCountry(){
|
||||
return country;
|
||||
}
|
||||
|
||||
public ArrayList<Route> getRoutes(){
|
||||
return routes;
|
||||
}
|
||||
|
||||
public void addRoutes(Route route){
|
||||
routes.add(route);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
public class Airport {
|
||||
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
public class City {
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Country {
|
||||
private String DST, name;
|
||||
private ArrayList<Airline> airlines = new ArrayList<Airline>();
|
||||
|
||||
public Country(String DST, String name){
|
||||
this.DST = DST;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDST(){
|
||||
return this.DST;
|
||||
}
|
||||
|
||||
public String getName(){
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public ArrayList<Airline> getAirlines(){
|
||||
return airlines;
|
||||
}
|
||||
|
||||
public void addAirline(Airline airline){
|
||||
this.airlines.add(airline);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
public class FlightPath {
|
||||
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
public class FlightPoint {
|
||||
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
package seng202.group9.Core;
|
||||
|
||||
public class Route {
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package seng202.group9.GUI;
|
||||
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
|
||||
/**
|
||||
* Main Menu Bar for the program
|
||||
* @author YaFedImYaEatIm
|
||||
*
|
||||
*/
|
||||
public class MainMenuBar{
|
||||
|
||||
final private String menuFXML = "menu.fxml";
|
||||
|
||||
public Parent getmenuBar(){
|
||||
try{
|
||||
Parent menuPane = FXMLLoader.load(getClass().getResource(menuFXML));
|
||||
return menuPane;
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package seng202.group9.GUI;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
import javafx.fxml.Initializable;
|
||||
|
||||
public class MenuController implements Initializable{
|
||||
|
||||
public void importAirports(){
|
||||
JOptionPane.showMessageDialog(null, "This is not Implemented yet");
|
||||
}
|
||||
|
||||
public void importAirlines(){
|
||||
JOptionPane.showMessageDialog(null, "This is not Implemented yet");
|
||||
}
|
||||
|
||||
public void importRoutes(){
|
||||
JOptionPane.showMessageDialog(null, "This is not Implemented yet");
|
||||
}
|
||||
|
||||
public void importFlightData(){
|
||||
JOptionPane.showMessageDialog(null, "This is not Implemented yet");
|
||||
}
|
||||
|
||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import java.lang.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng202.group9.GUI.MenuController">
|
||||
<children>
|
||||
<MenuBar>
|
||||
<menus>
|
||||
<Menu mnemonicParsing="false" text="File">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" onAction="#importAirports" text="Import Airports" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#importAirlines" text="Import Airlines" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#importRoutes" text="Import Routes" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#importFlightData" text="Import Flight Data" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" text="Close" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu mnemonicParsing="false" text="View" />
|
||||
<Menu mnemonicParsing="false" text="Analysis" />
|
||||
<Menu mnemonicParsing="false" text="Help">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" text="Getting Started" />
|
||||
</items>
|
||||
</Menu>
|
||||
</menus>
|
||||
</MenuBar>
|
||||
</children>
|
||||
</VBox>
|
||||
Loading…
Reference in new issue