UML Command pattern and Sate Pattern




Hi All,

I'm new to Patterns, I would really appreciate if any one can help me
out to solve the below problems?

- Thanks in advance. -Bob

1) Show how the command pattern could be applied in the Monopoly game
design. Include a class diagram and sequence diagrams for do, undo, and
redo.

2) Show how the state pattern would apply to the Property class in the
Monopoly design. What are the states of a Property? How do they change?
Show the class diagram for the Property class with the application of
the state pattern. Show a sequence diagram for one of the state changes.

.



Relevant Pages

  • Re: UML Command pattern and Sate Pattern
    ... You need more than the command pattern. ... Show how the state pattern would apply to the Property class in the ... Show the class diagram for the Property class with the application of ...
    (comp.object)
  • Re: Typesafe Enum Pattern
    ... posted is the ultimate pattern. ... be useful in identifying more requirements to be addressed by your proposed "class enum" type, which seems to address Steven's needs ... A pattern or base class to use without any CLR/framework/compiler ... either the Enum or State pattern, but find a place somewhere in between. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Re: Re: Strategy pattern and "related classes"
    ... > Strategy pattern and the State pattern are RADICALLY different, ... swapping generally, no matter what the overall intent of some pattern, ... exclusive of swapping itself. ...
    (comp.object)
  • The State Pattern in PHP 5
    ... And now, the State Pattern. ... In the state pattern a class will change it's behavior based on ... In my example a subclass of a specific interface may ... parse requests that use that syntax, and call the correct classes and ...
    (comp.lang.php)