Documentation
¶
Overview ¶
Package stressmodel generates large SysML v2 models of a stated shape and size, so the toolchain's cost can be measured against a model that looks like one a systems engineer would write rather than against one repeated declaration.
The satellite network is a constellation of fully modeled spacecraft: every satellite declares its own subsystems and their components with as-built attribute values, the power and data connections between them, a mass and a power budget, the requirements it satisfies and the mode machine it exhibits. Satellites are cross-linked to their neighbours in the same orbital plane and in the adjacent plane, and every satellite has a downlink to a ground station.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Name, Source string
}
File is one document of a network split across files.
type SatelliteNetwork ¶
type SatelliteNetwork struct {
// Planes is the number of orbital planes; Satellites is the number in each.
Planes, Satellites int
// GroundStations is the number of ground stations the constellation downlinks to.
GroundStations int
}
SatelliteNetwork sizes the generated constellation.
func (SatelliteNetwork) Generate ¶
func (n SatelliteNetwork) Generate(w io.Writer) (Stats, error)
Generate writes the network to w and reports what it declared.
func (SatelliteNetwork) Source ¶
func (n SatelliteNetwork) Source() (string, Stats)
Source returns the generated network as a string.
func (SatelliteNetwork) Split ¶
func (n SatelliteNetwork) Split() ([]File, Stats)
Split generates the network Generate writes as one document per orbital plane beside the shared library and the constellation joining the planes. Each plane imports the library by qualified name, so a file resolves against the others.
type Stats ¶
type Stats struct {
Satellites, GroundStations int
// Components is the number of leaf components across every satellite and station.
Components int
// Connections is the number of interface usages, inside satellites and between them.
Connections int
// Requirements is the number of requirement usages, each with a satisfy assertion.
Requirements int
// Elements is the number of declarations the model makes, library included.
Elements int
// Bytes is the length of the generated source.
Bytes int
}
Stats counts what a generated network declares.