Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

530 bistatic predecessors #547

Merged
merged 2 commits into from
Jul 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,19 @@ public void testCreateActions() throws IOException

assertEquals("new datasets generated", 6, store.size());

// check the new datasets know about their predecessors
List<Document<?>> newOut = actions.get(0).getOutputs();
assertEquals("three outputs", 3, newOut.size());

// check they're all angles
for (Document<?> t : newOut)
{
NumberDocument output = (NumberDocument) t;
assertEquals("all in degrees", SampleData.DEGREE_ANGLE, output.getUnits());
assertEquals("time-related", SampleData.MILLIS, output.getIndexUnits());
assertNotNull("output knows where it came from", output.getPrecedent());
}

}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public BistaticAngleCommand(final List<IStoreItem> selection,
{
super("Bistatic angle at:" + target.getName() + " from "
+ tx.getName() + " to:" + rx.getName(),
"Calculate bistatic angle at:" + target.getName() + " from "
+ tx.getName() + " to:" + rx.getName(), store, false, false,
"Calculate bistatic angles", store, false, false,
selection, context);

// special processing.
Expand All @@ -81,13 +80,13 @@ public BistaticAngleCommand(final List<IStoreItem> selection,
_timeProvider == null ? null : SampleData.MILLIS;
_azimuthBuilder =
new NumberDocumentBuilder("Aximuth Angle at:" + target.getName(),
_outputUnits, null, indexUnits);
_outputUnits, this, indexUnits);
_bistaticBuilder =
new NumberDocumentBuilder("Bistatic Angle at:" + target.getName(),
_outputUnits, null, indexUnits);
_outputUnits, this, indexUnits);
_bistaticAspectBuilder =
new NumberDocumentBuilder("Bistatic Aspect Angle at:"
+ target.getName(), _outputUnits, null, indexUnits);
+ target.getName(), _outputUnits, this, indexUnits);
}

@Override
Expand Down