Implement Block() class #17
Labels
help wanted
Extra attention is needed
needs design feedback
Design implementation needs feedback
SysML
Domain-knowledge of SysML is recommended for working on this issue
Implement attributes, constructors, and methods for
Block()
class.Attributes:
parts
- dictionary of blocks that are owned/contained within the block instance.values
- dictionary of value properties that are of typeint
orfloat
, or has attribute 'unit' (thus, can be a UnitRegistry frompint
package)references
- dictionary of reference properties (WIP)flows
- dictionary of flow properties (WIP)constraints
- dictionary of constraint properties that are of typeConstraint
uuid
- universally unique idmultiplicity
- intMethods:
add_part()
remove_part()
add_value()
remove_value()
add_reference()
remove_reference()
add_flow()
remove_flow()
add_constraint()
remove_constraint()
The text was updated successfully, but these errors were encountered: