-
Notifications
You must be signed in to change notification settings - Fork 0
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
Working on Adding Subcatchments #52
Conversation
… InpParseException Class
Inp Entity DataIn the above commit I have added the
The private IInpEntity? InitializeEntity(IInpDatabase database) => InpTable.Name switch
{
InpOption.HeaderName => InpOption.CreateFromOptionName(Key, this, database),
Subcatchment.InpName => new Subcatchment(this, database),
_ => new InpEntity()
}; This method will then return to the |
…dd entity data to itself
…criptions are still saved
Sub-Area EntityIntroductionIn the above commits I added the MethodFirst the entity is read from the inp file into a In the constructor of the (Database?.GetEntity<Subcatchment>(Name) as IEntityDataHost<SubArea>)?.AddEntityData(this); This gets the relevant referenced entity from the database and then calls the After the In conclusion this above process can be simplified into the following steps
|
Adding The Subcatchments Entity
This Pull Request which is a WIP is for the adding of subcatchments into the develop branch. This is the first entity so it will required a little more work up front to set up the required infrastructure to parse all entities.
So far I have added a few new things such as the EntityTests base class that will be used to serve as a base for all entity test in an attempt to add more code reuse in the project.
I have also added the
INode
interface that adds anX
,Y
, andZ
to any inheritors that want to add theINode
functionality.For the database I have added a method class
GetEntities<T>
that will return anIEnumerable<T>
that can be used to traverse theIInpEntities
in the database without having to return a whole list of them.This pull request is to address #34 and will work towards the V0.3.0 milestone.