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

📄 mockgroundcontroller.java.svn-base

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

import world.Gate;
import world.Runway;
import world.Strip;
import world.Taxiway;
import interfaces.*;
import world.*;
import base.*;
import java.util.*;

public class MockGroundController extends Mock implements GroundControllerInterface {
	
	Tower tower = null;
	public EventLog log = new EventLog();
	public MockGroundController(String name) {
		super(name);
	}
	
	public MockGroundController(String name, Tower tower) {
		super(name);
		this.tower = tower;	
	}
	
    // Landing
    public void msgLeavingRunway (String callNumber, Runway lastPath, Gate gate) { 
    	log.add(new LoggedEvent("Received message msgLeavingRunway"));
    }
    public void msgConfirmTaxiLandingPath (String callNumber, List<Taxiway> taxiInstructions) { 
    	log.add(new LoggedEvent("Received message msgConfirmTaxiLandingPath"));
    }
    public void msgNewArrivalStrip (Strip newArrival) { 
    	log.add(new LoggedEvent("Received message msgNewArrivalStrip"));
    }

    // Takeoff
    public void msgRequestPushBack (String callNumber, Gate gate) { 
    	log.add(new LoggedEvent("Received message msgRequestPushBack"));
    }
    public void msgConfirmPushBack (String callNumber, Runway takeoffRunway, Gate gate) { 
    	log.add(new LoggedEvent("Received message msgConfirmPushBack"));
    }
    public void msgReadyForTaxi (String callNumber, Taxiway currentPosition) { 
    	log.add(new LoggedEvent("Received message msgReadyForTaxi"));
    }
    public void msgConfirmTaxiTakeoffPath (String callNumber, List<Taxiway> path, LocalControllerInterface lc) { 
    	log.add(new LoggedEvent("Received message msgConfirmTaxiTakeoffPath"));
    }
    public void msgNewDepartureStrip (Strip newDeparture) { 
    	log.add(new LoggedEvent("Received message msgNewDepartureStrip"));
    }

}

⌨️ 快捷键说明

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