12.07.2015 Views

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3. <strong>Architectural</strong> <strong>Pattern</strong>s 47Client 1Node 1Client 2BrokerNode 2Client 3Figure 3.9: Example usage <strong>of</strong> Broker patternregistered Controllers. It also cooperates with View because Model cannotify View about changes <strong>of</strong> state <strong>of</strong> Model. View interacts with Controllerbecause View invokes Controller. It can also retrieve data fromModel.Controller interacts with both Controller and Model (see figure 3.10)6. Presentation Abstraction ControllerOverview– the purpose <strong>of</strong> the pattern is similar <strong>to</strong> the purpose <strong>of</strong> MVCpattern. This pattern represents different approach <strong>to</strong> the problem <strong>of</strong> interaction<strong>of</strong> a user with an application.ElementsAgent– each agent consist <strong>of</strong> three elements: Presentation which is meant<strong>to</strong> provide information <strong>to</strong> a user, Abstraction manipulating data <strong>of</strong> thesystem and Controller handling communication between Presentation andAbstraction. Agents are further divided in<strong>to</strong> agents representing particularfunctionalities and agents coordinating the system.Layer <strong>of</strong> Abstraction– an application consists <strong>of</strong> several Layers <strong>of</strong> Abstraction.Each layer contains Agent on the same level <strong>of</strong> abstraction. The <strong>to</strong>player contains only one agent which coordinates the whole application whilethe “leaves agents” in the lowest layer represent particular functionalities.A layer invokes other layer on behalf <strong>of</strong> an agent.Relationships– Each Agent can communicate directly with other agentsin the same layer <strong>of</strong> abstraction. Layers <strong>of</strong> Abstraction communicate onlywith layers bellow (see figure 3.11).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!