1. Trang chủ
  2. » Luận Văn - Báo Cáo

BẢO HỘ SỞ HỮU TRÍ TUỆ ĐỐI VỚI CHỈ DẪN ĐỊA LÝ CÓ YẾU TỐ NƯỚC NGOÀI Ở VIỆT NAM SO SÁNH VỚI MỘT SỐ HỆ THỐNG PHÁP LUẬT TRÊN THẾ GIỚI

75 1,3K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 75
Dung lượng 170,28 KB

Nội dung

Nhận dạng lớp Case Study: Mô sân bay • Lớp Plane, phương thức? – Khởi tạo – Hạ cánh – Cất cánh • Lớp Runway: – Chứa thành phần thể hàng đợi máy bay đợi cất cánh hạ cánh • Lớp Random: – trạng thái ngẫu nhiên việc cất cánh hạ cánh máy bay Cài đặt const int END_TIME = 30; // time to run simulation const int QUEUE_LIMIT = 60; // size of Runway queues const double ARRIVAL_RATE = 0.5, DEPARTURE_RATE = 0.5; int main( ) // Airport simulation program /* Pre: The user must supply the number of time intervals the simulation is to run, the expected number of planes arriving, the expected number of planes departing per time interval, and the maximum allowed size for runway queues Post: The program performs a random simulation of the airport, showing the status of the runway at each time interval, and prints out a summary of airport operation at the conclusion Uses: Classes Runway, Plane, Random and functions run_idle, initialize */ 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 int number_departures = random.poisson(DEPARTURE_RATE); // current departure requests for (int j = 0; j < number_departures; j++) { Plane current_plane(flight_number++, current_time, departing); if (small_airport.can_depart(current_plane) != success) current_plane.refuse( ); } Plane moving_plane; switch (small_airport.activity(current_time, moving_plane)) { // Let at most one Plane onto the Runway at current_time case land: moving_plane.land(current_time); break; case takeoff: moving_plane.fly(current_time); break; case idle: run_idle(current_time); } // end of switch { int flight_number = 0; Random random; Runway small_airport(queue_limit); for (int current_time = 0; current_time < END_TIME; current_time++) { // loop over time intervals int number_arrivals = random.poisson(ARRIVAL_RATE); // current arrival requests 10 for (int i = 0; i < number_arrivals; i++) { 11 Plane current_plane(flight_number++, current_time, arriving); 12 if (small_airport.can_land(current_plane) != success) 13 current plane refuse( ); Class Runway • Cần quản lý hai hàng đợi – Cất cánh hạ cánh • Ưu tiên máy bay đợi hạ cánh • Yêu cầu thống kê: – Số máy bay xử lý – Thời gian đợi trung bình – Số máy bay bị từ chối 1 10 11 12 13 14 15 16 17 18 19 20 21 enum Runway_activity {idle, land, takeoff}; class Runway { public: Runway(int limit); Error_code can_land(const Plane ¤t); Error_code can_depart(const Plane ¤t); Runway_activity activity(int time, Plane &moving); void shut_down(int time) const; private: Queue landing; Queue takeoff; int queue_limit; int num_land_requests; // number of planes asking to land int num_takeoff_requests; // number of planes asking to take off int num_landings; // number of planes that have landed int num_takeoffs; // number of planes that have taken off int num_land_accepted; // number of planes queued to land int num_takeoff_accepted; // number of planes queued to take off int num_land_refused; // number of landing planes refused int num_takeoff_refused; // number of departing planes refused int land wait; // total time of planes waiting to land Định nghĩa lớp Plane enum Plane_status {null, arriving, departing}; class Plane { public: Plane( ); Plane(int flt, int time, Plane_status status); void refuse( ) const; void land(int time) const; void fly(int time) const; int started( ) const; 10.private: 11 int flt_num; 12 int clock_start; 13 Plane_status state; 14.};

Ngày đăng: 19/10/2014, 18:17

HÌNH ẢNH LIÊN QUAN

Bảng 1:  TÌNH HÌNH ĐĂNG KÝ VÀ CẤP VĂN BẰNG BẢO HỘ CDĐL TỪ NĂM 2000 ĐẾN NĂM 2012. - BẢO HỘ SỞ HỮU TRÍ TUỆ ĐỐI VỚI CHỈ DẪN ĐỊA LÝ  CÓ YẾU TỐ NƯỚC NGOÀI Ở VIỆT NAM  SO SÁNH VỚI MỘT SỐ HỆ THỐNG PHÁP LUẬT TRÊN THẾ GIỚI
Bảng 1 TÌNH HÌNH ĐĂNG KÝ VÀ CẤP VĂN BẰNG BẢO HỘ CDĐL TỪ NĂM 2000 ĐẾN NĂM 2012 (Trang 57)
Bảng 2: Các chỉ dẫn địa lý được đăng ký của EU và các nhãn hiệu chứng nhận của Hoa Kỳ được bảo hộ như chỉ dẫn địa lý (không bao gồm rượu vang và rượu mạnh) - BẢO HỘ SỞ HỮU TRÍ TUỆ ĐỐI VỚI CHỈ DẪN ĐỊA LÝ  CÓ YẾU TỐ NƯỚC NGOÀI Ở VIỆT NAM  SO SÁNH VỚI MỘT SỐ HỆ THỐNG PHÁP LUẬT TRÊN THẾ GIỚI
Bảng 2 Các chỉ dẫn địa lý được đăng ký của EU và các nhãn hiệu chứng nhận của Hoa Kỳ được bảo hộ như chỉ dẫn địa lý (không bao gồm rượu vang và rượu mạnh) (Trang 58)

TỪ KHÓA LIÊN QUAN

TRÍCH ĐOẠN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w