I just started working with the AggregatedGridInput
and discovered that there is
- no default constructor with input parameters
- fields like
gridName
, subnet
, and voltLvl
are writable by setters
Question 1:
I see the point in making grid assets e.g. measurement units, graphics, system participant etc. writable but does this hold true for gridName
, subnet
, and voltLvl
as well? Wouldn't it be better to make these fields final and add a corresponding constructor instead.
Question 2:
Furthermore, I would question that measurement units should be placed in the AggregatedGridInput. Is there any specific reason why this has been placed here instead of AggregatedRawGridInput
? Do you have any thoughts on this @ckittl?
Question 3:
@mia-krause maybe you can answer this one: we currently have setters for all our fields in the InputEntity
part but we don't have an empty default constructor to make use of the setters (except from modifying objects after creation which might not be reasonable. Is there any reason, why
- these fields are not final (and correspondingly getters can be removed)?
- the empty constructor is not there?
I know that setters + empty constructors are needed for JavaBeans and Generic operations but do we want/need this at this place? And if yes, there is still an empty constructor missing. If no, we can get rid of the setters and make the fields final.