Category:OOP

  • Beihang OO (2020) unit 3 blog assignment

    Time:2020-8-7

    Beihang OO (2020) unit 3 blog assignment catalog Beihang OO (2020) unit 3 blog assignment Summary of JML language theoretical basis Declaration of specification variables Common expressions Method specification Type specification Application tool chain Openjml verification Parsing and Type-checking Extended Static Checking Runtime Assertion Checking Jmlunitng test (for mygroup class) Job structure analysis Operation bug […]

  • Service registration, discovery, heartbeat

    Time:2020-8-6

    Using akka to achieve service registration, discovery and heartbeat Message class: package org.examplecase class RegisterWorkerInfo(id: String, cpu: Int, ram: Int);case class WorkerInfo(val id: String, val cpu: Int, val ram: Int) { var lastheartbeat: Long = System.currentTimeMillis ();};case object RegisteredWorkerInfo;case object SendHeartBeat;case object StartTimeOutWorker;case object RemoveTimeOutWorker; Case class heartbeanpackage (ID: String); server master: package org.exampleimport java.util.concurrent […]

  • BUAA_ OO_ Unit 3

    Time:2020-8-4

    1、 On JML ​ JML(Java Modeling Language)As a formal language, it can be constrainedJavaThe state and behavior of classes and methods in the code form specifications. By abstracting a series of concrete code implementations into explicit behavior interfaces, a contractual programming mode can be formed,JMLWithout considering the actual data structure and algorithm, the designer can […]

  • Java review, java knowledge points and Java interview questions (1)

    Time:2020-8-3

    J2SE(Java 2 Platform Standard Edition) J2ME(Java 2 Platform Micro Edtion) J2EE(Java 2 Platform Enterprise Edition)   Java language features: open source cross platform (JVM), object-oriented, etc   JRE and JDK JRE (JVM and jjava Class Library) JDK contains JDK, as well as other development tools   Java source code — > javac compilation — > […]

  • Interview surprise Season 1, season 2, season 3

    Time:2020-8-2

    Season 1 compulsory https://www.bilibili.com/video/BV1FE411y79Y?from=search&seid=15921726601957489746 Season 2 distributed https://www.bilibili.com/video/BV13f4y127ee/?spm_ Id_ from=333.788.videocard.1 Season 3 special https://www.bilibili.com/video/BV1ce41147Z3?p=2

  • Unit 3 work summary

    Time:2020-8-1

      1. Preface This should be the last homework summary of this semester. Generally speaking, the rhythm of homework is almost mastered, and the efficiency of homework is also higher. Although the same as the previous homework, the assignment will use new knowledge, but compared to the previous, more understand how to use tools and materials. […]

  • Beihang OO (2020) unit 4 blog assignment and course summary blog

    Time:2020-7-31

    Beihang OO (2020) unit 4 blog assignment and course summary blog catalog Beihang OO (2020) unit 4 blog assignment and course summary blog The structure design of this unit Evolution of architecture design and OO method understanding Evolution of test understanding and practice in four units Course harvest Some suggestions on the course Experience of […]

  • BUAA_ OO_ Unit 4

    Time:2020-7-30

    1、 UML parser design Let’s take a look at the topic first: Unit 4 implementation of aJDK 8With effectiveness checkUML(Unified Modeling Language)Class diagram, sequence diagram, state diagram analyzerMyUmlInteractionIn fact, we want to build a digraph model,UMLCan also be linked to the elements of the same level ​ Input:The above threeUMLThe edge set (non entity element) […]

  • 6.1 logical operators

    Time:2020-7-29

    Logical operator 1. & & short circuit and Expression 1 & expression 2 01. The expression 1 is true and the expression 2 is also true. The overall return is true 02. If the expression 1 is false, the expression 2 will not be executed and the whole return is false 03. As long as […]

  • Buaaoo unit 4 & course summary

    Time:2020-7-28

    Unit 4: StarUML file analysis This unit uses graph model to analyze UML. UML files can be abstracted as logical structures of graphs, subgraphs and edges. In the implementation, the nodes of the graph include class, interface and attribute, and the subgraph includes state diagram, sequence diagram, etc. The method of traversing UML elements three […]

  • My understanding of C ා polymorphism

    Time:2020-7-27

    Object oriented three elements: encapsulation, inheritance and polymorphism.Encapsulation and inheritance are easy to understand, but it is a little difficult to understand polymorphism. Today, we will talk about the understanding of polymorphism.We should often see interview questions: please talk about the understanding of polymorphism.In fact, polymorphism is very simpleCalling the same method produces different results。There […]

  • Python data driven tool: DDT

    Time:2020-7-26

    background Python unittest does not have its own data-driven function. So if you use unittest and want to use data-driven, you can use DDT to do it. DDT is an abbreviation for “data driven tests.”. Data: http://ddt.readthedocs.io/en/latest/ usage method dd.ddt: Decoration class, that is, the class inherited from testcase. ddt.data: Decoration test method. A parameter […]