use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method createStraightNorthThroughRepeats.
public static Survey createStraightNorthThroughRepeats() {
Survey survey = new Survey("Test Straight Survey North");
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
Leg leg = new Leg(5, 0, 0);
SurveyUpdater.update(survey, leg);
}
}
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method createStraightNorth.
public static Survey createStraightNorth() {
Survey survey = new Survey("Test Straight Survey North");
Leg leg0 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg0);
Leg leg1 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg1);
Leg leg2 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg2);
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method createStraightSouth.
public static Survey createStraightSouth() {
Survey survey = new Survey("Test Straight Survey South");
Leg leg0 = new Leg(5, 180, 0);
SurveyUpdater.updateWithNewStation(survey, leg0);
Leg leg1 = new Leg(5, 180, 0);
SurveyUpdater.updateWithNewStation(survey, leg1);
Leg leg2 = new Leg(5, 180, 0);
SurveyUpdater.updateWithNewStation(survey, leg2);
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class CrossSectionerTest method testStraightNorthCrossSection.
@Test
public void testStraightNorthCrossSection() {
Survey testSurvey = BasicTestSurveyCreator.createStraightNorth();
Station s2 = testSurvey.getStationByName("2");
double angle = CrossSectioner.getAngleOfSection(testSurvey, s2);
Assert.assertEquals(0.0, angle, SexyTopo.ALLOWED_DOUBLE_DELTA);
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class StationRenameTest method testRenamingToExistingNameFails.
@Test(expected = IllegalArgumentException.class)
public void testRenamingToExistingNameFails() {
Survey testSurvey = BasicTestSurveyCreator.createStraightNorth();
Station s2 = testSurvey.getStationByName("2");
SurveyUpdater.renameStation(testSurvey, s2, "1");
}
Aggregations