Computer science presentation

From enfascination

Jump to: navigation, search

UML Diagrams

http://www.gliffy.com/pubdoc/1652891/L.jpg

Adapter Pattern [1]

  • Converts between two interfaces that can't change so they can communicate.
    • Does so by extending/implementing one incompatible class
  • In this case, I implemented adapter accidentally, except that I didn't subclass MultiLeggedAgent, and neither MLA nor CTRNN were interfaces.

Mediator Pattern

  • One class that all classes interact through in order to communicate with each other, like how the stock exchange acts as an abstracted interface for buyers and sellers.
  • My work is not quite mediator, because CTRNN doesn't depend on it at all. On the contrary, Neural Architecture aggregates CTRNN instead.