⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mockpilot.java.svn-base

📁 這是一個JAVA語言寫的多代理人程式用來模擬飛機起飛或是降落的程式
💻 SVN-BASE
字号:
package mock;
import java.util.Collection;

import mock.LoggedEvent;
import java.util.*;
import world.Gate;
import world.Plane;
import world.Runway;
import world.Strip;
import world.TRACON;
import world.Taxiway;
import world.Waypoint;
import world.Weather;
import interfaces.*;

public class MockPilot extends Mock implements PilotInterface {
	
	public String flight_num;
	
	public MockPilot(String name) {
		super(name);
	}
	public MockPilot(String name, String flight_num) {
		super(name);
		this.flight_num = flight_num;
	}
	public boolean heartBeat() {
		return true;
	}
	public void setGroundController(GroundControllerInterface gc) {
		 
	}
	public void setLocalController(LocalControllerInterface gc) {
		 
	}
	public GroundControllerInterface getGroundController() {
		return null;
	}
	public LocalControllerInterface getLocalController() {
		return null;
	}
	// Landing
	public  void msgNewArrivingFlight(String callNumber, Runway runway, 
			Gate gate, LocalControllerInterface localController) { 
		log.add(new LoggedEvent("Received message msgNewArrivingFlight"));
	}
	public  void msgArrivalChecklistSuccessful() { 
		log.add(new LoggedEvent("Received message msgArrivalChecklistSuccessful"));
	}
	public  void msgClearanceToLand(Runway runway) { 
		log.add(new LoggedEvent("Received message msgClearanceToLand"));
	}
	public  void msgNotClearedToLand() { 
		log.add(new LoggedEvent("Received message msgNotClearedToLand"));
	}
	public  void msgLandingPath(List<Taxiway> path, GroundControllerInterface gc) { 
		log.add(new LoggedEvent("Received message msgLandingPath("));
	}
	public  void msgTaxiLandingPath(List<Taxiway> taxiInstruction) { 
		log.add(new LoggedEvent("Received message msgTaxiLandingPath"));
	}
	
	
	
	// Takeoff
	public  void msgNewDepartingFlight(String callNumber, Runway runway, Gate gate, 
			String destination, ClearanceDeliveryInterface clearanceDelivery) { 
		log.add(new LoggedEvent("Received message msgNewDepartingFlight"));
	}
	public  void msgClearanceGranted(List<Waypoint> procedure, GroundControllerInterface gc) { 
		log.add(new LoggedEvent("Received message msgClearanceGranted"));
	}
	public  void msgSendWeather(Weather report) { 
		log.add(new LoggedEvent("Received message msgSendWeather"));
	}
	public  void msgDepartureChecklistSuccessful() { 
		log.add(new LoggedEvent("Received message msgDepartureChecklistSuccessful"));
	}
	public  void msgGivePushBack(Runway takeoffRunway, Gate gate) { 
		log.add(new LoggedEvent("Received message msgGivePushBack"));
	}
	public  void msgTaxiTakeoffPath(List<Taxiway> path, LocalControllerInterface lc) { 
		log.add(new LoggedEvent("Received message msgTaxiTakeoffPath"));
	}
	public  void msgPositionAndHold() { 
		log.add(new LoggedEvent("Received message msgPositionAndHold"));
	}
	public  void msgClearedForTakeoff(Runway takeoffRunway) { 
		log.add(new LoggedEvent("Received message msgClearedForTakeoff"));
	}
	public  void msgContactDepartureControl(TRACON departureControl) { 
		log.add(new LoggedEvent("Received message msgContactDepartureControl"));
	}
	public void msgWaitForTaxiway() {
		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -