Modeling
-
Abstract factoryModeling/DesignPattern 2019. 8. 23. 06:38
1. Overview The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes. In normal usage, the client software creates a concrete implementation of the abstract factory and then uses the generic interface of the factory to create the concrete objects that are part of the theme. The client doesn't kno..
-
Factory PatternModeling/DesignPattern 2019. 8. 22. 09:17
1. Overview The factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. This is done by creating objects by calling a factory method—either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden b..
-
Simple Factory PatternModeling/DesignPattern 2019. 8. 22. 09:16
1. Overview 2. Description 2.1 Motivation Here we simply move the instantiation logic to a separate class and most commonly to a static method of this class Some do not consider a simple factory to be a design pattern, as its simply a method that encapsulates object instantiation. Nothing complex goes on in that method. Typically we want to do this if we have more than one option when instantiat..
-
Bridge Design PatternModeling/DesignPattern 2019. 8. 19. 23:05
1. Overview Bridge belongs to Structural patterns. This pattern allows us to vary independently between abstraction and implementations. but if Bridge has to be designed in advance, then only we can have varying abstractions & implementations. it has two parts. Abstraction Implementation Abstraction – the core of the bridge design pattern and defines the crux. Contains a reference to the impleme..
-
Difference between Concurrency and ParallelismModeling/TheoremParadigm 2019. 8. 18. 20:31
1. Overview Distinguish two concepts in detail. 2. Comparison Between Concurrency and Parallelism Concurrency Parallelism Basic Running multiple computations at the same time Running multiple computations simultaneously Achieved through Interleaving operation Using multiple CPU's Benefits An increasing amount of work accomplished at a time Multiple CPU's for operating multiple processes Make use..
-
Polymorphism, Upcasting, And DowncastingModeling/TheoremParadigm 2019. 8. 18. 20:21
1. Overview Organize Polymorphism, Upcasting, and Downcasting. and then find usages and pitfalls each casting. 2. Description 2.1 Polymorphism The ability of an object to take on many forms. All methods in Java are virtual by default. so Any method can be overridden when used in inheritance unless that method is declared as final or static. When we cast object only the reference type of the obje..