Support adding animations to static views
Checklist
- [X] There are no similar issues or pull requests for this yet.
Is your feature related to a problem? Please describe it.
Following PR #77, the last remaining part of the API needed to complete the big_bank.py example is being able to add animations to static views.
Describe the solution you would like.
Mirroring the Java implementation,, we should add an add_animation() method to StaticView which accepts a variable number of elements, and copy the logic from Java. The serialisation and deserialisation of animation data has already been done, so it's just about being able to add animations programmatically.
system_landscape_view.add_animation(internet_banking_system, customer, mainframe_banking_system, emailSystem)
system_landscape_view.add_animation(atm)
system_landscape_view.add_animation(customerServiceStaff, back_office_staff)
Given animations also are supported in the (currently experimental) CustomView in Java which doesn't extend StaticView, then perhaps this should be implemented in Python as a mixin (both View and IO) which can be used by both.