Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diamonds are not forever #247

Merged
merged 9 commits into from
Aug 29, 2019
Merged

Diamonds are not forever #247

merged 9 commits into from
Aug 29, 2019

Conversation

Christian-B
Copy link
Member

@Christian-B Christian-B commented Aug 14, 2019

AbstractVirtualVertex, AbstractSpiNNakerLinkVertex and AbstractFPGAVertex where only ever used to check the instance of an Object that due to context was KNOWN to be an AbstractVertex.

ApplicationSpiNNakerLinkVertex, ApplicationFPGAVertex, MachineSpiNNakerLinkVertex and MachineFPGAVertex had diamond inheritance to AbstractVertex through ApplicationVertex or MachineVertex

All other uses of AbstractVirtualVertex build through one of the Application/MaichineSpiNNaker/FPGALinkVertex classes so get AbstractVertex that way.

This PR removes the AbstractVertex from AbstractVirtualVertex super list and renames it AbstractVirtual to show the change.

Removing the Diamond inheritance allows a none empty slots to be used in AbstractVertex.
It also allows AbstractVertex to have ConstrainedObject as its super

This PR is farther developed in #246
Which moves the methods and slots down.

@dkfellows
Copy link
Member

Shirley Bassey will be so upset.

@coveralls
Copy link

coveralls commented Aug 14, 2019

Coverage Status

Coverage decreased (-0.04%) to 67.791% when pulling f615888 on diamonds_are_not_forever into 261750c on master.

# fixed Conflicts:
#	pacman/utilities/file_format_converters/convert_to_file_machine_graph.py
#	pacman/utilities/file_format_converters/convert_to_file_machine_graph_pure_multicast.py
#	pacman/utilities/file_format_converters/create_file_constraints.py
@dkfellows dkfellows merged commit 5ea34de into master Aug 29, 2019
@dkfellows dkfellows deleted the diamonds_are_not_forever branch August 29, 2019 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants