Tag:Elevator.

  • Design pattern learning 22 (Java implementation) — Interpreter pattern

    Time:2022-3-14

    Write in front Take notes of learning design patterns Improve the flexible use of design patterns Learning address https://www.bilibili.com/vide… https://www.bilibili.com/vide… Reference articles http://c.biancheng.net/view/1… Project source codehttps://gitee.com/zhuang-kang/DesignPattern 24. Interpreter mode Design a software to calculate addition and subtraction. Our first idea is to use tool classes to provide corresponding addition and subtraction tools and methods. //Used […]

  • Design pattern learning 23 (Java implementation) — state pattern

    Time:2022-3-12

    Write in front Take notes of learning design patterns Improve the flexible use of design patterns Learning address https://www.bilibili.com/vide… https://www.bilibili.com/vide… Reference articles http://c.biancheng.net/view/1… Project source codehttps://gitee.com/zhuang-kang/DesignPattern 25. Status mode 25.1 definition and characteristics of state mode Definition of state mode:For stateful objects, the complex “judgment logic” is extracted into different state objects, allowing the state […]

  • High concurrency aggregate request instance of spool

    Time:2021-1-29

    1、 Preface The purpose of this paper is to show how to make full use of batch processing of database to achieve business functions more efficiently by aggregating requests in high concurrency scenarios. Of course, this example is only for the purpose of inspiring readers to think more deeply. 2、 Text The background of this […]

  • It’s too bland. My boss wants me to detect and import 10000 hours of video in a week

    Time:2020-10-16

    Abstract:When I came back to work after the holiday and walked into the elevator, I had a special feeling. The big brother in the hair transplant advertisement in the elevator looked at me differently from before Last time I said, the boss rewarded 7 days of paid leave, so I went home to play for […]

  • A high concurrency aggregate request instance of swoole

    Time:2020-10-10

    1、 Preface The purpose of this paper is to explain how to aggregate requests and make full use of the batch processing of database to realize business functions more efficiently in high concurrency scenarios. Of course, this example is only used as a reference, hoping to inspire readers to think more deeply. 2、 Text The […]

  • BUAA OO unit 2 Summary

    Time:2020-8-17

    BUAA OO unit 2 Summary Part 1 design strategy In the three operations, theThe main thread obtains the request, the multi-level scheduler allocates the request step by step, and the elevator simulation operation strategy。 Specifically, mainline instantiationElevatorInputClass to obtain the request by blocking readRequest, then assign the request to the schedulerSchedulerThe scheduler is responsible for […]

  • OO unit 2 personal summary

    Time:2020-8-15

    Unit 2 object oriented assignment: Sexy elevator eating people online Part 1: single elevator Multithreading design strategy There is only one elevator running this time, so it is not difficult to design the multi thread elevator. Moreover, the problem can be solved by using the one-to-one producer consumer model. The overall design is as follows: […]

  • BUAA_ OO_ Unit 2

    Time:2020-8-14

    BUAA_OO_2020_UNIT2 1、 Program structure analysis The fifth assignment UML & Mertrics The elevator scheduling problem is essentially a task request and assignment problem. In the fifth operation, the author uses a simple “producer consumer” model to establish a modelDinThe thread as a producer parses the input and adds a transport request to theElevThread output, data […]

  • Unit 2 of OO — multi thread elevator

    Time:2020-8-13

    1、 Design strategy (1) Single elevator: a. Thread Division: Elevator and request threads. The elevator thread is mainly responsible for passenger transportation and in and out. The request thread receives passenger information. Control is a buffer used to hold the passenger queue shared by the elevator and request threads. b. Scheduling strategy: Based on the […]

  • BUAA OO Unit2 elevator dispatching

    Time:2020-8-12

    This work completed an open-loop elevator scheduling system. In the second iteration, capacity limitation and multiple elevators are added. In the third iteration, elevator floor division and elevator request are added. 1. System architecture graph LR MainClass–Requests–>Schedule Executor–Notify–>Schedule Schedule–Update–>Executor MainClass–Create–>Elevators Schedule–Check–>Elevators Executor–Operate–>Elevators Schedule–Adapt–>Method Mainclass is used to assemble subsystems and send requests to schedule Schedule […]

  • Application of data mining algorithm in risk identification and prevention and control of property equipment and facilities management

    Time:2020-7-13

    Link to original text:http://tecdat.cn/?p=2186 [](http://tecdat.cn/?p=2186) Property engineering is responsible for maintaining the normal operation of various facilities and equipment of the project, ensuring the normal life of all owners and making the property value maintenance and appreciation. It is the heart department of the project. According to the national elevator fault report and summary data, […]

  • Leetcode’s HOT100 series — 155. The smallest stack

    Time:2020-1-10

    Stack: first in first out, last in first out Like the elevator, those who enter the elevator first, go to the deepest part of the elevator, and then enter the elevator, stand at the door of the elevator,So when the elevator is opened, those who enter later will come out first, and those who enter […]