• 제목/요약/키워드: Observer Pattern

검색결과 46건 처리시간 0.025초

Observer 패턴을 적용한 MMORPG의 파티 시스템 아이템 배분 방법 (The Item Distribution Method for the Party System in the MMORPG Using the Observer Pattern)

  • 김태석;김신환;김종수
    • 한국멀티미디어학회논문지
    • /
    • 제10권8호
    • /
    • pp.1060-1067
    • /
    • 2007
  • 인터넷을 이용하는 다양한 게임 장르 중에서 대규모의 게임 유저들이 이용하는 게임 장르인 MMORPG(Massively Multi-player Online Role-Playing Game)를 개발하기위해서는 많은 기술들이 필요하다. 특히 분산 작업의 효율을 높이기 위해서 C++와 같은 객체지향언어가 사용되는데, 대규모의 게임을 만들 때 객체지향개념을 충분히 활용할 수 있는 설계기법이 유용하다. GoF(Gang of Four)의 디자인 패턴에는 소프트웨어 분산 설계에 응용할 수 있는 다양한 패턴이 있는데, 게임 유저들 사이에 커뮤니티를 형성하기 위한 파티 시스템 설계에 Observer 패턴을 이용하면, 필요한 새로운 클래스의 추가나 유지보수를 쉽게 할 수 있다. MMORPG 게임 내에서 파티 사냥 시스템은 게임 이용자들의 커뮤니티를 형성하기 위해 자주 이용되는 중요한 시스템이다. 파티 사냥 시스템에서 중요하게 고려해야 할 사항은 파티 사냥 결과로 얻어지는 획득물과 경험치를 다양한 레벨의 이용자들에게 공평하게 나누어 주는 것이다. 시스템의 유지보수적인 측면을 고려한 파티 사냥 시스템을 구현하기 위하여, 본 논문에서는 GoF의 디자인 패턴 중 Observer Pattern을 이용한 기법을 제안하고, 제안된 기법이 C++언어가 가지는 장점인 동적메모리 할당과 가상 메소드 호출을 이용하여 프로그램 실행 시에 실시간으로 객체를 변경하고 새로운 클래스를 추가하는데 효율적이며, 시스템을 유지 보수하는데 장점이 있음을 보인다.

  • PDF

과열기의 온도추정을 위한 관측기의 구성 (An observer design for the superheater temperature estimation)

  • 서진헌;황재호;이상혁
    • 제어로봇시스템학회:학술대회논문집
    • /
    • 제어로봇시스템학회 1990년도 한국자동제어학술회의논문집(국내학술편); KOEX, Seoul; 26-27 Oct. 1990
    • /
    • pp.101-106
    • /
    • 1990
  • The problem of constructing an observer for use in the control of superheater temperature with desuperheater is considered. The distributed heat input into the superheater is usually not available for use in the observer, and hence is treated as a disturbance. The observer theory for systems with unknown inputs is exploited and applied to the problem. Approximation of the heat input utilizing the specific heat input distribution pattern is also considered.

  • PDF

관찰자/피관찰자 설계 패턴을 이용한 모바일 M/VC 응용 프레임워크 (Mobile M/VC Application Framework Using Observer/Observable Design Pattern)

  • 음두헌
    • 인터넷정보학회논문지
    • /
    • 제7권2호
    • /
    • pp.81-92
    • /
    • 2006
  • 최근, 휴대폰과 PDA 등의 무선기기 사용자가 급증하고 있다. 이에 따라 지리정보, 교통안내 시스템과 같은 모니터링 및 제어 응용이 무선기기에서 활발히 사용되고 있다. 본 논문에서는 모바일 응용 중, 모니터링 및 제어 응용인 M/VC(Model/View Controller) 응용의 신속한 작성을 지원하는 모바일 M/VC 응용 프레임워크를 소개한다. 모바일 M/VC 응용 프레임워크는 무선 통신 환경에서 클라이언트와 서버 객체의 상호작용을 자동 처리하기 위해 Java의 관찰자/피관찰자(Observer/Observable)를 확장한 모바일 관찰자/피관찰자 패턴과 관찰자/피관찰자 객체들의 조립 기능을 제공하는 Multiplexer와 Demultiplexer 클래스들을 지원한다. 개발자는 이 프레임워크를 이용하여 Observable과 MoblieObserver 클래스들로부터 필요한 객체들을 생성한 후, 이들을 Multiplexer와 Demultiplexer 객체에 구성적으로(plug-and-play식으로) 상호 연결하여 응용을 생성한다. 즉, 개발자는 무선 환경을 고려하지 않고 모바일 M/VC 응용 프레임워크가 제공하는 Multiplexer나 Demultiplexer 클래스의 객체에 모바일 관찰자/피관찰자 객체들을 조립식으로 연결함으로써 피관찰자의 상태 변화가 관찰자에게 전달되고 관찰자를 통한 사용자의 입력이 피관찰자에게 전달되어 반영되는 모바일 모니터링 및 제어 응용을 신속하게 작성할 수 있다. 또한, 모바일 M/VC 응용 프레임워크는 무선 통신 환경하의 관찰자/피관찰자 객체들과 같은 컴포넌트 재사용성을 개선한다.

  • PDF

Imperfection Parameter Observer and Drift Compensation Controller Design of Hemispherical Resonator Gyros

  • Pi, Jaehwan;Bang, Hyochoong
    • International Journal of Aeronautical and Space Sciences
    • /
    • 제14권4호
    • /
    • pp.379-386
    • /
    • 2013
  • The hemispherical resonator gyroscope is a type of vibratory gyroscope, which can measure angle or angular rate, based on its operating mode. This paper deals with the case when the hemispherical resonator gyroscope is operated in angle measurement mode. In angle measurement mode, the resonator pattern angle precesses, with respect to the external rotation input, by the principle of the Coriolis effect, so that the external rotation can be estimated, by measuring the amount of precession angle. However, this pattern angle drifts, due to the manufacturing error of the resonator. Since the drift effect causes degradation of the angle estimation performance of the resonator, the corresponding drift compensation control should be performed, to enhance the estimation performance. In this paper, a mathematical model of the hemispherical resonator gyro is first introduced. By using the mathematical model, a nonlinear observer for imperfection parameter estimation, and the corresponding compensation controller are designed to operate hemispherical resonator gyros, as angle measurement sensors.

Linked Observer 패턴을 적용한 안드로이드 게임 프레임워크 설계 및 구현 (Design and Implementation for Android Game Framework Using the Linked Observer Pattern)

  • 서문석
    • 한국IT서비스학회지
    • /
    • 제12권3호
    • /
    • pp.421-432
    • /
    • 2013
  • The changes in the game platform is appeared since the advent of smart-phones. Apple's iOS or Google's Android platform is gradually expanding their territories in the mobile game area. Android's platform fragmentation and the absence of game development framework act as barriers for game developments. In the development of game applications on the smart-phone, the standardized development procedures under game framework can achieve the productivity improvement. In this paper, we propose a new design pattern suitable for the design of a framework for new areas of application through the expansion of existing framework. The design and implementation of the Android game development framework is presented by taking advantage of existing design patterns and a proposed pattern. Also we propose the standardized development procedure of game applications under the proposed framework.

디자인 패턴을 이용한 Undo 기능 설계에 대한 연구 (A Study on the Undo Function Implementation using the Design Patterns)

  • 김태석;김종수
    • 한국멀티미디어학회논문지
    • /
    • 제19권8호
    • /
    • pp.1544-1552
    • /
    • 2016
  • If the undo/redo function is not reflected in the initial design of an application, it makes it difficult to implement the undo/redo function additionally, in this paper, we examined some examples to design the sodoku game and analyzed problems of the design to implement the undo/redo functions. For an efficient design of the undo/redo functions without using swing.undo package, we propose a class design using the Command, Memento, and Observer pattern these are used as organic. The proposed method is more efficient for distributed work than other method. We implemented a sudoku game using proposed design. In the undo/redo function testing, we could see that it works well.

URC 로봇 상태정보 모니터링을 위한 SOMAR 환경에서의 분산 Observer 패턴 구현 (Implementation of Distributed Observer Pattern about SOMAR environment for URC Robot Status Information Monitoring)

  • 김수연;곽동규;최재영;유재우
    • 한국정보처리학회:학술대회논문집
    • /
    • 한국정보처리학회 2009년도 추계학술발표대회
    • /
    • pp.217-218
    • /
    • 2009
  • URC 로봇은 고성능 서버를 통해 로봇이 수행할 서비스의 일부를 외부 디바이스에 분담시킴으로써 저렴한 하드웨어로 로봇을 구현하고자 하는 목적을 가지는 지능형 서비스 로봇이다. SOMAR는 유비쿼터스 환경에서 사용자에게 다양한 원격 로봇 서비스를 제공하기 위한 URC 로봇 미들웨어로, URC 로봇 클라이언트와 이를 등록, 제어, 관리하는 서버로 구성된다. SOMAR 서버를 통해 로봇 서비스를 수행하기 위해서는 로봇 클라이언트의 상태정보를 모니터링하여 수행가능 여부를 판단해야 한다. 본 논문은 이러한 상태정보 모니터링을 위해 R-OSGi를 이용한 분산 Observer 패턴을 구현한다. Observer 패턴은 객체간에 느슨한 결합구조를 가져 URC 로봇 클라이언트 모니터링 프로그램의 개발과 수정이 용이하고, 플러그인 방식의 개발을 통해 다양한 프로그램 설치와 응용이 가능하다.

A Novel Space Vector modulation Scheme and Direct Torque Control for Four-switch BLDCM Using Flux Observer

  • Pan, Lei;Wang, Beibei;Su, Gang;Cheng, Baohua;Peng, Guili
    • Journal of Electrical Engineering and Technology
    • /
    • 제10권1호
    • /
    • pp.251-260
    • /
    • 2015
  • The main purpose of this paper is to describe a DTC (direct torque control) method for four-switch brushless dc motor (BLDCM) drive. In the method, a novel voltage space vector modulation scheme, an optimal switching table, and a flux observation method are proposed. Eight voltage vectors are summarized, which are selected to control BLDCM in SVPWM pattern, and an optimal switching table is proposed to improve the torque distortion caused by midpoint current of the split capacitors. Unlike conventional flux observers, this observer does not require speed adaptation and is not susceptible to speed estimation errors, especially, at low speed. Global asymptotic stability of the flux observer is guaranteed by the Lyapunov stability analysis. DC-offset effects are mitigated by introducing a PI component in the observer gains. This method alleviates the undesired current and torque distortion which is caused by uncontrollable phase. The correctness and feasibility of the method are proved by simulation and experimental results.

Computed Radiography에서 고정형 그리드와 이동형 그리드 영상의 인식률 비교 (Stationary and Moving Computed Radiography Grids : Comparative Observer's Perception)

  • 이기호;이창훈;진계환
    • 한국방사선학회논문지
    • /
    • 제9권7호
    • /
    • pp.515-521
    • /
    • 2015
  • 고정형 그리드(stationary grid)에서 그리드 아티팩트(grid artifacts)와 모아레 아티팩트($moir{\acute{e}}$ pattern artifacts)로 인한 영상의 질의 저하와 이동형 그리드(moving grid)에서의 컷 오프 아티팩트(cut off artifacts)로 인한 영상의 질의 저하를 정량적으로 비교 평가하였다. CDRAD 팬텀(Phantom)과 두께 24 cm의 acryl Phantom을 촬영조건(X-ray exposure conditions)을 100 cm, 80 kVp, 30 mA로 하여 고정형 그리드와 이동형그리드에서 영상(X-ray imaging)을 획득하였다. CDRAD Analyser을 이용한 영상(X-ray imaging) 인식률(observer's perception)은 고정그리드에서 평균(mean) 49.36, 표준편차(standard deviation) 3.76, 최대값(max) 55.56, 최소값 38.67이었고 이동형그리드에서 평균 47.04, 편차 12.69, 최대값 55.56, 최소값 20.89이었다. 이동형 그리드보다 고정형 그리드가 인식률의 평균과 표준편차에서 더 우수하게 나타났다.

안드로이드 디바이스 최적화를 위한 GOF 디자인 패턴적용 방법에 대한 연구 (A Study on the Application Method of GOF Design Pattern for Optimizing Android Devices)

  • 정우철;전문석;최도현
    • 한국인터넷방송통신학회논문지
    • /
    • 제17권1호
    • /
    • pp.89-97
    • /
    • 2017
  • 최근 사물인터넷(IoT), 웨어러블 등 PC이외에 휴대용 디바이스를 대상으로 OOP(Object-Oriented Programming)와 함께 GoF(Gang of Four)의 디자인 패턴 등 다양한 객체지향 방법론 설계를 기반으로 소프트웨어를 개발하고 있다. 그러나 잘못된 어플리케이션 설계는 운영체제 속도 저하, 메모리 점유율과 배터리 사용량 증가 등 문제를 발생시킬 수 있기 때문에 저 사양 디바이스에서의 프로그래밍 최적화의 중요도가 높다. 본 논문에서는 안드로이드(Android) 운영체제를 기반으로 Strategy패턴, State패턴, Observer패턴 등 최적화된 디자인 패턴 적용 방법을 제안한다. 테스트 결과 제안하는 패턴 선별 기법이 저 사양 디바이스에 최적화된 디자인 패턴을 선별할 수 있다는 것을 확인하였다.