Documentation ¶
Index ¶
- func BarFromDeserialization(bar *DeserializeBarDTO, data *structure.StructureData, ...) *structure.Element
- func BarsFromDeserialization(deserializedBars []*DeserializeBarDTO, data *structure.StructureData, ...) []*structure.Element
- func DeserializeLoad(line string) (contracts.StrID, *load.DistributedLoad, *load.ConcentratedLoad)
- func DeserializeMaterial(definition string) *structure.Material
- func DeserializeNode(definition string) *structure.Node
- func DeserializeSection(definition string) *structure.Section
- func Read(reader io.Reader, options inkio.ReaderOptions) *structure.Structure
- func Write(structure *structure.Structure, writer io.Writer)
- type DeserializeBarDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BarFromDeserialization ¶
func BarFromDeserialization( bar *DeserializeBarDTO, data *structure.StructureData, readerOptions inkio.ReaderOptions, ) *structure.Element
func BarsFromDeserialization ¶
func BarsFromDeserialization( deserializedBars []*DeserializeBarDTO, data *structure.StructureData, readerOptions inkio.ReaderOptions, ) []*structure.Element
BarsFromDeserialization maps the deserialization data transfer objects to the structure elements given the structure data (nodes, sections, materials and loads).
Using the reader options, the bar can be added loads for its own weight.
func DeserializeLoad ¶
func DeserializeLoad(line string) (contracts.StrID, *load.DistributedLoad, *load.ConcentratedLoad)
func DeserializeMaterial ¶
func DeserializeNode ¶
func DeserializeSection ¶
Types ¶
type DeserializeBarDTO ¶
type DeserializeBarDTO struct { Id contracts.StrID StartNodeId contracts.StrID StartLink *structure.Constraint EndNodeId contracts.StrID EndLink *structure.Constraint MaterialName string SectionName string }
func DeserializeBar ¶
func DeserializeBar(line string) (*DeserializeBarDTO, int)
DeserializeBar parses a bar from the definition line. The bar is a deserialization data transfer object containing the data needed to create the bar. It references the ids of the nodes and names of the materials and sections.
If the bar has the preprocess format, it also reads the number of nodes of the sliced bar and returns the number as the second argument.
func (*DeserializeBarDTO) Equals ¶
func (bar *DeserializeBarDTO) Equals(other *DeserializeBarDTO) bool
Click to show internal directories.
Click to hide internal directories.