Class in Zendir.Classes | Inherits from UniverseBehaviour

Declaration

class FuelBus;

Description

The FuelBus is a component that manages the fuel network topology on a spacecraft. It owns all connections (edges) between fuel components and provides APIs for connecting, disconnecting, and querying the fuel network. The FuelSystem iterates over all FuelBus instances to solve fuel flow across the simulation.


Properties

InheritedDescription
IsEnabledIs true if the object is currently enabled.
NameThe display name or tag of this object.
ParentThe currently attached parent object (if any).

Methods

DeclaredDescription
AddSignedFlowBetweenAdds signed flow to the edge between two components. Positive flow is stored in the→ direction when that edge exists; otherwiseflow is stored as negative on the reverse-oriented edge.
ConnectConnects two fuel components on specified ports. Creates an edge in the networkand adds both components to the cache if not already present.For cross-spacecraft connections, the edge is added to both buses.
DisconnectDisconnects two fuel components on specified ports. Removes the edge from the network.For cross-spacecraft connections, the edge is removed from both buses.
DisconnectAllDisconnects all edges from a component (all ports).
DisconnectPortDisconnects all edges from a specific port on a component.
EdgeExistsReturns whether an edge connection exists between two components on the specified ports.
GetAllNodesGets all components in the cache.
GetFlowBetweenReturns the signed flow rate through the edge between two components on the specified ports.Positive flow means flow from to .Returns 0 if the edge does not exist in the network.
IsConnectedChecks if a component is connected to the bus (has any edges).
IsInCacheChecks if a component is in the cache.
RemoveRemoves a component from the bus entirely, disconnecting all its edgesand removing it from the cache.
SetSignedFlowBetweenSets signed flow on the edge between two components. Positive flow is stored in the→ direction when that edge exists; otherwiseflow is stored as negative on the reverse-oriented edge.
InheritedDescription
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.