test_class.file: app/src/test/java/org/hwyl/sexytopo/control/util/SurveyUpdaterTest.java
test_class.identifier: SurveyUpdaterTest
test_case.body: @Test
      public void testUpdateWithThreeSimilarLegsLeadsToNewStation() {
          Leg leg = new Leg(5, 0, 0);
          Leg similarLeg = new Leg(5, 0.001, 0);
          Leg anotherSimilarLeg = new Leg(5, 0, 0.001);
          Survey survey = new Survey("Test Survey");
          SurveyUpdater.update(survey, leg);
          SurveyUpdater.update(survey, similarLeg);
          SurveyUpdater.update(survey, anotherSimilarLeg);
          Assert.assertEquals(survey.getAllStations().size(), 2);
      }
test_case.class_method_signature: SurveyUpdaterTest.testUpdateWithThreeSimilarLegsLeadsToNewStation()
test_case.full_signature: @Test public void testUpdateWithThreeSimilarLegsLeadsToNewStation()
test_case.identifier: testUpdateWithThreeSimilarLegsLeadsToNewStation
test_case.invocations: update update update assertEquals size getAllStations
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdateWithThreeSimilarLegsLeadsToNewStation()
focal_class.declarator: DEFAULT_MAX_DISTANCE_DELTA = 0.05f
focal_class.modifier: private static final
focal_class.original_string: private static final float DEFAULT_MAX_DISTANCE_DELTA = 0.05f;
focal_class.type: float
focal_class.var_name: DEFAULT_MAX_DISTANCE_DELTA
focal_class.declarator: DEFAULT_MAX_ANGLE_DELTA = 1.7f
focal_class.modifier: private static final
focal_class.original_string: private static final float DEFAULT_MAX_ANGLE_DELTA = 1.7f;
focal_class.type: float
focal_class.var_name: DEFAULT_MAX_ANGLE_DELTA
focal_class.file: app/src/main/java/org/hwyl/sexytopo/control/util/SurveyUpdater.java
focal_class.identifier: SurveyUpdater
focal_class.class_method_signature: SurveyUpdater.update(Survey survey, List<Leg> legs, InputMode inputMode)
focal_class.full_signature: public static boolean update(Survey survey, List<Leg> legs, InputMode inputMode)
focal_class.identifier: update
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, List<Leg> legs, InputMode inputMode)
focal_class.return: boolean
focal_class.signature: boolean update(Survey survey, List<Leg> legs, InputMode inputMode)
focal_class.class_method_signature: SurveyUpdater.update(Survey survey, List<Leg> legs)
focal_class.full_signature: public static boolean update(Survey survey, List<Leg> legs)
focal_class.identifier: update
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, List<Leg> legs)
focal_class.return: boolean
focal_class.signature: boolean update(Survey survey, List<Leg> legs)
focal_class.class_method_signature: SurveyUpdater.update(Survey survey, Leg leg)
focal_class.full_signature: public static boolean update(Survey survey, Leg leg)
focal_class.identifier: update
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Leg leg)
focal_class.return: boolean
focal_class.signature: boolean update(Survey survey, Leg leg)
focal_class.class_method_signature: SurveyUpdater.update(Survey survey, Leg leg, InputMode inputMode)
focal_class.full_signature: public static synchronized boolean update(Survey survey, Leg leg, InputMode inputMode)
focal_class.identifier: update
focal_class.modifiers: public static synchronized
focal_class.parameters: (Survey survey, Leg leg, InputMode inputMode)
focal_class.return: boolean
focal_class.signature: boolean update(Survey survey, Leg leg, InputMode inputMode)
focal_class.class_method_signature: SurveyUpdater.updateWithNewStation(Survey survey, Leg leg)
focal_class.full_signature: public static void updateWithNewStation(Survey survey, Leg leg)
focal_class.identifier: updateWithNewStation
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Leg leg)
focal_class.return: void
focal_class.signature: void updateWithNewStation(Survey survey, Leg leg)
focal_class.class_method_signature: SurveyUpdater.upgradeSplayToConnectedLeg(Survey survey, Leg leg, InputMode inputMode)
focal_class.full_signature: public static void upgradeSplayToConnectedLeg(Survey survey, Leg leg, InputMode inputMode)
focal_class.identifier: upgradeSplayToConnectedLeg
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Leg leg, InputMode inputMode)
focal_class.return: void
focal_class.signature: void upgradeSplayToConnectedLeg(Survey survey, Leg leg, InputMode inputMode)
focal_class.class_method_signature: SurveyUpdater.getNextStationName(Survey survey)
focal_class.full_signature: private static synchronized String getNextStationName(Survey survey)
focal_class.identifier: getNextStationName
focal_class.modifiers: private static synchronized
focal_class.parameters: (Survey survey)
focal_class.return: String
focal_class.signature: String getNextStationName(Survey survey)
focal_class.class_method_signature: SurveyUpdater.createNewStationIfTripleShot(Survey survey, boolean backsightMode)
focal_class.full_signature: private static boolean createNewStationIfTripleShot(Survey survey, boolean backsightMode)
focal_class.identifier: createNewStationIfTripleShot
focal_class.modifiers: private static
focal_class.parameters: (Survey survey, boolean backsightMode)
focal_class.return: boolean
focal_class.signature: boolean createNewStationIfTripleShot(Survey survey, boolean backsightMode)
focal_class.class_method_signature: SurveyUpdater.createNewStationIfBacksight(Survey survey)
focal_class.full_signature: private static boolean createNewStationIfBacksight(Survey survey)
focal_class.identifier: createNewStationIfBacksight
focal_class.modifiers: private static
focal_class.parameters: (Survey survey)
focal_class.return: boolean
focal_class.signature: boolean createNewStationIfBacksight(Survey survey)
focal_class.class_method_signature: SurveyUpdater.editLeg(
              final Survey survey, final Leg toEdit, final Leg edited)
focal_class.full_signature: public static synchronized void editLeg(
              final Survey survey, final Leg toEdit, final Leg edited)
focal_class.identifier: editLeg
focal_class.modifiers: public static synchronized
focal_class.parameters: (
              final Survey survey, final Leg toEdit, final Leg edited)
focal_class.return: void
focal_class.signature: void editLeg(
              final Survey survey, final Leg toEdit, final Leg edited)
focal_class.class_method_signature: SurveyUpdater.renameStation(Survey survey, Station station, String name)
focal_class.full_signature: public static void renameStation(Survey survey, Station station, String name)
focal_class.identifier: renameStation
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Station station, String name)
focal_class.return: void
focal_class.signature: void renameStation(Survey survey, Station station, String name)
focal_class.class_method_signature: SurveyUpdater.moveLeg(Survey survey, Leg leg, Station newSource)
focal_class.full_signature: public static void moveLeg(Survey survey, Leg leg, Station newSource)
focal_class.identifier: moveLeg
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Leg leg, Station newSource)
focal_class.return: void
focal_class.signature: void moveLeg(Survey survey, Leg leg, Station newSource)
focal_class.class_method_signature: SurveyUpdater.deleteStation(final Survey survey, final Station toDelete)
focal_class.full_signature: public static void deleteStation(final Survey survey, final Station toDelete)
focal_class.identifier: deleteStation
focal_class.modifiers: public static
focal_class.parameters: (final Survey survey, final Station toDelete)
focal_class.return: void
focal_class.signature: void deleteStation(final Survey survey, final Station toDelete)
focal_class.class_method_signature: SurveyUpdater.deleteSplay(Survey survey, Station station, Leg splay)
focal_class.full_signature: public static void deleteSplay(Survey survey, Station station, Leg splay)
focal_class.identifier: deleteSplay
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Station station, Leg splay)
focal_class.return: void
focal_class.signature: void deleteSplay(Survey survey, Station station, Leg splay)
focal_class.class_method_signature: SurveyUpdater.areLegsAboutTheSame(List<Leg> legs)
focal_class.full_signature: private static boolean areLegsAboutTheSame(List<Leg> legs)
focal_class.identifier: areLegsAboutTheSame
focal_class.modifiers: private static
focal_class.parameters: (List<Leg> legs)
focal_class.return: boolean
focal_class.signature: boolean areLegsAboutTheSame(List<Leg> legs)
focal_class.class_method_signature: SurveyUpdater.getMaxDistanceDelta()
focal_class.full_signature: private static float getMaxDistanceDelta()
focal_class.identifier: getMaxDistanceDelta
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getMaxDistanceDelta()
focal_class.class_method_signature: SurveyUpdater.getMaxAngleDelta()
focal_class.full_signature: private static float getMaxAngleDelta()
focal_class.identifier: getMaxAngleDelta
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getMaxAngleDelta()
focal_class.class_method_signature: SurveyUpdater.areLegsBacksights(Leg fore, Leg back)
focal_class.full_signature: public static boolean areLegsBacksights(Leg fore, Leg back)
focal_class.identifier: areLegsBacksights
focal_class.modifiers: public static
focal_class.parameters: (Leg fore, Leg back)
focal_class.return: boolean
focal_class.signature: boolean areLegsBacksights(Leg fore, Leg back)
focal_class.class_method_signature: SurveyUpdater.averageLegs(List<Leg> repeats)
focal_class.full_signature: public static Leg averageLegs(List<Leg> repeats)
focal_class.identifier: averageLegs
focal_class.modifiers: public static
focal_class.parameters: (List<Leg> repeats)
focal_class.return: Leg
focal_class.signature: Leg averageLegs(List<Leg> repeats)
focal_class.class_method_signature: SurveyUpdater.averageBacksights(Leg fore, Leg back)
focal_class.full_signature: public static Leg averageBacksights(Leg fore, Leg back)
focal_class.identifier: averageBacksights
focal_class.modifiers: public static
focal_class.parameters: (Leg fore, Leg back)
focal_class.return: Leg
focal_class.signature: Leg averageBacksights(Leg fore, Leg back)
focal_class.class_method_signature: SurveyUpdater.averageAzimuths(double[] azimuths)
focal_class.full_signature: private static double averageAzimuths(double[] azimuths)
focal_class.identifier: averageAzimuths
focal_class.modifiers: private static
focal_class.parameters: (double[] azimuths)
focal_class.return: double
focal_class.signature: double averageAzimuths(double[] azimuths)
focal_class.class_method_signature: SurveyUpdater.reverseLeg(final Survey survey, final Station toReverse)
focal_class.full_signature: public static void reverseLeg(final Survey survey, final Station toReverse)
focal_class.identifier: reverseLeg
focal_class.modifiers: public static
focal_class.parameters: (final Survey survey, final Station toReverse)
focal_class.return: void
focal_class.signature: void reverseLeg(final Survey survey, final Station toReverse)
focal_class.class_method_signature: SurveyUpdater.setDirectionOfSubtree(Survey survey, Station station, Direction direction)
focal_class.full_signature: public static void setDirectionOfSubtree(Survey survey, Station station, Direction direction)
focal_class.identifier: setDirectionOfSubtree
focal_class.modifiers: public static
focal_class.parameters: (Survey survey, Station station, Direction direction)
focal_class.return: void
focal_class.signature: void setDirectionOfSubtree(Survey survey, Station station, Direction direction)
focal_method.body: public static boolean update(Survey survey, List<Leg> legs, InputMode inputMode) {
          boolean anyStationsAdded = false;
          for (Leg leg : legs) {
              anyStationsAdded = anyStationsAdded || update(survey, leg, inputMode);
          }
          return anyStationsAdded;
      }
focal_method.class_method_signature: SurveyUpdater.update(Survey survey, List<Leg> legs, InputMode inputMode)
focal_method.full_signature: public static boolean update(Survey survey, List<Leg> legs, InputMode inputMode)
focal_method.identifier: update
focal_method.invocations: update
focal_method.modifiers: public static
focal_method.parameters: (Survey survey, List<Leg> legs, InputMode inputMode)
focal_method.return: boolean
focal_method.signature: boolean update(Survey survey, List<Leg> legs, InputMode inputMode)