Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
DeltaVEngineStageSet Class Reference

Storage class to store a Set of DeltaVengineInfo and DeltaVStageInfo. More...

Classes

class  DeltaVStageInfoEntry
 Storage class to store DeltaVStageInfo and DeltaVEngineInfo. There are two instances of each. More...
 
class  StageSortingInstanceOne
 

Public Member Functions

virtual void AddEngineWorkingSet (DeltaVEngineInfo engineInfo)
 Add an Engine to the Working Set. More...
 
 DeltaVEngineStageSet (VesselDeltaV vesselDeltaV)
 Constructor More...
 
virtual void RemoveInvalidEnginesWorkingSet ()
 Remove any Engines from the current working data set that are not part of the Vessel/Ship any more. More...
 
virtual void RemoveStagedStages (bool sortStages=false)
 Will remove any stages that have been staged off from the vessel or that no longer contain any parts or active engines. More...
 
virtual void UpdateStageInfo (int stage)
 Update the Stage Info for a specific stage. Processes from the StageManager Instance and Calls DeltaVStageInfo.Reset which will Reset all values and Reprocesses the Parts List for each Stage. If an entry is not found to Reset it will construct a new DeltaVStageInfo entry.

Parameters
stageThe stage number
More...
 
virtual void UpdateStageInfo ()
 Update the Stage Info. Processes from the StageManager Instance and Calls DeltaVStageInfo.Reset which will Reset all values and Reprocesses the Parts List for each Stage. Calls RemoveStaleStages to remove any stale stages from the dictionary. If an entry is not found to Reset it will construct a new DeltaVStageInfo entry. More...
 

Public Attributes

int operatingIndex
 The operating Index - This index determines which EngineInfo and StageInfo to return to DV UI classes. More...
 
List< int > payloadStages
 
VesselDeltaV vesselDeltaV
 Reference to the VesselDeltaV Instance this Data instance belongs to. More...
 
int workingIndex
 The Working Set Index - This index determines which EngineInfo and StageInfo to return to the DV classes when processing a DV update. More...
 

Protected Member Functions

virtual void AddStageInfo (DeltaVStageInfo stageInfo)
 Add a StageInfo entry. Will Add to the appropriate StageInfo Instance depending on whether a DV Update is running or not. More...
 
virtual void RemoveStaleStages ()
 Remove Stale stages from the dictionary. More...
 
virtual void SetPayload (DeltaVStageInfo stageInfo)
 
virtual void SortStages ()
 Sort the Stage Info Entries More...
 

Protected Attributes

IComparer< DeltaVStageInfostageSorting = new RUIutils.FuncComparer<DeltaVStageInfo>((r1, r2) => RUIutils.SortAscDescPrimarySecondary(false, r1.stage.CompareTo(r2.stage)))
 

Properties

virtual List< DeltaVEngineInfoOperatingEngineInfo [get]
 List of EngineInfo on the Vessel from the OperatingIndex for UI display purposes. More...
 
virtual List< DeltaVStageInfoOperatingStageInfo [get]
 Returns a List of DeltaVStageInfo from the OperatingIndex for UI display purposes. More...
 
virtual List< DeltaVEngineInfoWorkingEngineInfo [get]
 Returns a List of DeltaVEngineInfo depending on whether there is a DV update running or not from the working index or the operating index. More...
 
virtual List< DeltaVStageInfoWorkingStageInfo [get]
 Returns a List of DeltaVStageInfo depending on whether there is a DV update running or not from the working index or the operating index. More...
 

Detailed Description

Storage class to store a Set of DeltaVengineInfo and DeltaVStageInfo.

Constructor & Destructor Documentation

DeltaVEngineStageSet.DeltaVEngineStageSet ( VesselDeltaV  vesselDeltaV)
inline

Constructor

Parameters
vesselDeltaVReference to the VesselDeltaV Instance this Data instance belongs to.

Member Function Documentation

virtual void DeltaVEngineStageSet.AddEngineWorkingSet ( DeltaVEngineInfo  engineInfo)
inlinevirtual

Add an Engine to the Working Set.

Parameters
engineInfo
virtual void DeltaVEngineStageSet.AddStageInfo ( DeltaVStageInfo  stageInfo)
inlineprotectedvirtual

Add a StageInfo entry. Will Add to the appropriate StageInfo Instance depending on whether a DV Update is running or not.

Parameters
stageInfo
virtual void DeltaVEngineStageSet.RemoveInvalidEnginesWorkingSet ( )
inlinevirtual

Remove any Engines from the current working data set that are not part of the Vessel/Ship any more.

virtual void DeltaVEngineStageSet.RemoveStagedStages ( bool  sortStages = false)
inlinevirtual

Will remove any stages that have been staged off from the vessel or that no longer contain any parts or active engines.

Parameters
sortStages
virtual void DeltaVEngineStageSet.RemoveStaleStages ( )
inlineprotectedvirtual

Remove Stale stages from the dictionary.

virtual void DeltaVEngineStageSet.SetPayload ( DeltaVStageInfo  stageInfo)
inlineprotectedvirtual
virtual void DeltaVEngineStageSet.SortStages ( )
inlineprotectedvirtual

Sort the Stage Info Entries

virtual void DeltaVEngineStageSet.UpdateStageInfo ( int  stage)
inlinevirtual

Update the Stage Info for a specific stage. Processes from the StageManager Instance and Calls DeltaVStageInfo.Reset which will Reset all values and Reprocesses the Parts List for each Stage. If an entry is not found to Reset it will construct a new DeltaVStageInfo entry.

Parameters
stageThe stage number

virtual void DeltaVEngineStageSet.UpdateStageInfo ( )
inlinevirtual

Update the Stage Info. Processes from the StageManager Instance and Calls DeltaVStageInfo.Reset which will Reset all values and Reprocesses the Parts List for each Stage. Calls RemoveStaleStages to remove any stale stages from the dictionary. If an entry is not found to Reset it will construct a new DeltaVStageInfo entry.

Member Data Documentation

int DeltaVEngineStageSet.operatingIndex

The operating Index - This index determines which EngineInfo and StageInfo to return to DV UI classes.

List<int> DeltaVEngineStageSet.payloadStages
IComparer<DeltaVStageInfo> DeltaVEngineStageSet.stageSorting = new RUIutils.FuncComparer<DeltaVStageInfo>((r1, r2) => RUIutils.SortAscDescPrimarySecondary(false, r1.stage.CompareTo(r2.stage)))
protected
VesselDeltaV DeltaVEngineStageSet.vesselDeltaV

Reference to the VesselDeltaV Instance this Data instance belongs to.

int DeltaVEngineStageSet.workingIndex

The Working Set Index - This index determines which EngineInfo and StageInfo to return to the DV classes when processing a DV update.

Property Documentation

virtual List<DeltaVEngineInfo> DeltaVEngineStageSet.OperatingEngineInfo
get

List of EngineInfo on the Vessel from the OperatingIndex for UI display purposes.

virtual List<DeltaVStageInfo> DeltaVEngineStageSet.OperatingStageInfo
get

Returns a List of DeltaVStageInfo from the OperatingIndex for UI display purposes.

virtual List<DeltaVEngineInfo> DeltaVEngineStageSet.WorkingEngineInfo
get

Returns a List of DeltaVEngineInfo depending on whether there is a DV update running or not from the working index or the operating index.

virtual List<DeltaVStageInfo> DeltaVEngineStageSet.WorkingStageInfo
get

Returns a List of DeltaVStageInfo depending on whether there is a DV update running or not from the working index or the operating index.


The documentation for this class was generated from the following file: