space_ex v0.1.0 SpaceEx.SpaceCenter.Resources

Represents the collection of resources stored in a vessel, stage or part.

Created by calling SpaceEx.SpaceCenter.Vessel.get_resources/2, SpaceEx.SpaceCenter.Vessel.resources_in_decouple_stage/4 or SpaceEx.SpaceCenter.Part.get_resources/2.

Link to this section Summary

Functions

Returns the amount of a resource that is currently stored

All the individual resources that can be stored

Whether use of all the resources are enabled

A list of resource names that can be stored

Check whether the named resource can be stored

Returns the amount of a resource that can be stored

Whether use of all the resources are enabled

Returns the density of a resource, in \(kg/l\)

Returns the flow mode of a resource

All the individual resources with the given name that can be stored

Link to this section Functions

Link to this function amount(conn, this, name)

Returns the amount of a resource that is currently stored.

  • name — The name of the resource.
Link to this function get_all(conn, this)

All the individual resources that can be stored.

Link to this function get_enabled(conn, this)

Whether use of all the resources are enabled.

This is true if all of the resources are enabled. If any of the resources are not enabled, this is false.

Link to this function get_names(conn, this)

A list of resource names that can be stored.

Link to this function has_resource(conn, this, name)

Check whether the named resource can be stored.

  • name — The name of the resource.
Link to this function max(conn, this, name)

Returns the amount of a resource that can be stored.

  • name — The name of the resource.
Link to this function set_enabled(conn, this, value)

Whether use of all the resources are enabled.

This is true if all of the resources are enabled. If any of the resources are not enabled, this is false.

Link to this function static_density(conn, name)

Returns the density of a resource, in \(kg/l\).

  • name — The name of the resource.
Link to this function static_flow_mode(conn, name)

Returns the flow mode of a resource.

  • name — The name of the resource.
Link to this function with_resource(conn, this, name)

All the individual resources with the given name that can be stored.