added external design pattern documentation links to behavioural patterns.

This commit is contained in:
tylerlaberge
2016-08-24 21:53:02 -04:00
parent 854966b38b
commit 5af1a1ae38
12 changed files with 47 additions and 21 deletions
+6 -3
View File
@@ -18,8 +18,9 @@ class InvalidInvokerCommandException(Exception):
class Receiver(object, metaclass=ABCMeta):
"""
Abstract receiver class as part of the Command pattern.
"""
External Command Pattern documentation: U{https://en.wikipedia.org/wiki/Command_pattern}
"""
def action(self, name, *args, **kwargs):
"""
Delegates which method to be called for a desired action.
@@ -38,8 +39,9 @@ class Receiver(object, metaclass=ABCMeta):
class Command(object, metaclass=ABCMeta):
"""
Abstract Command class as part of the Command pattern.
"""
External Command Pattern documentation: U{https://en.wikipedia.org/wiki/Command_pattern}
"""
def __init__(self, receiver):
"""
Initialize a new command instance.
@@ -67,8 +69,9 @@ class Command(object, metaclass=ABCMeta):
class Invoker(object, metaclass=ABCMeta):
"""
Abstract Invoker class as part of the Command pattern.
"""
External Command Pattern documentation: U{https://en.wikipedia.org/wiki/Command_pattern}
"""
def __init__(self, valid_commands):
"""
Initialize a new Invoker instance.