Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

                                                  const StringArray &elementList);

The arguments here are:

provider

A pointer to the data provider, supplied using its ‘this’ pointer.

id

The ID for the data set that is pushed.  Set to -1 if the Publisher needs to assign the id.  

If not -1, it needs to be an ID that the publisher assigned previously.

ownerList

The names of the object(s) associated with the data.

elementList

A text description of each element of the provided data.

...

As an example, if the Propagate command has 2 spacecraft named Sat1 and Sat2, the owners array and elements array StringArrays look like this for the RegisterPublishedData() call:

owners

All

Sat1

Sat1

Sat1

Sat1

Sat1

Sat1

Sat2

Sat2

Sat2

Sat2

Sat2

Sat2

elements

All.epoch

Sat1.X

Sat1.Y

Sat1.Z

Sat1.Vx

Sat1.Vy

Sat1.Vz

Sat2.X

Sat2.Y

Sat2.Z

Sat2.Vx

Sat2.Vy

Sat2.Vz

...

Note: The Publish() method is overloaded in the Publisher, but this is currently the only one used in the code.  

The arguments here are:

provider

A pointer to the data provider, supplied using its ‘this’ pointer.

id

The ID assigned to this data provider during initialization

data

The data to be published; this data maps directly to the data provided during initialization (the “elements” StringArray in the earlier code).  

count

The size of the provided data array.

propDir

Indicates the direction time is moving at the call (1.0 = forward, -1.0 = backward,

2.0 = forward, ephems only, -2.0 = backwards, ephems only)

...