Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Refactor so shard / non-shard cases can use the same code #112

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

saj9191
Copy link
Contributor

@saj9191 saj9191 commented Nov 19, 2019

The shard / non-shard cases in CRA use different API. Ideally,
we would have a base class for the common API and have the
shard case inherit from the base class + either VertexBase or
ShardedVertexBase. However, C# does not support multiple
inheritence.

To get around this, we move the initialized methods into an
non-shard case that calls the original Ambrosia initialize
function. This way we can easily add the sharded case.

To make this cleaner and potentially easier to test, we move this
logic into a different file.

The shard / non-shard cases in CRA use different API. Ideally,
we would have a base class for the common API and have the
shard case inherit from the base class + either VertexBase or
ShardedVertexBase. However, C# does not support multiple
inheritence.

To get around this, we move the initialized methods into an
non-shard case that calls the original Ambrosia initialize
function. This way we can easily add the sharded case.

To make this cleaner and potentially easier to test, we move this
logic into a different file.
Shannon Joyner added 2 commits December 6, 2019 15:18
It's the same test as AMB_Basic_Test, except with shard params.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant