test_class.file: app/src/test/java/org/hwyl/sexytopo/control/util/GraphToListTranslatorTest.java
test_class.identifier: GraphToListTranslatorTest
test_case.body: @Test
      public void testChronoListGeneration() {
          GraphToListTranslator translator = new GraphToListTranslator();
          Survey baseSurvey = BasicTestSurveyCreator.createStraightNorth();
          baseSurvey.setActiveStation(baseSurvey.getStationByName("1"));
          SurveyUpdater.updateWithNewStation(baseSurvey, new Leg(5, 270, 0));
          List<GraphToListTranslator.SurveyListEntry> chronoList =
                  translator.toChronoListOfSurveyListEntries(baseSurvey);
          GraphToListTranslator.SurveyListEntry last = chronoList.get(chronoList.size() - 1);
          Assert.assertEquals("5", last.getLeg().getDestination().getName());
      }
test_case.class_method_signature: GraphToListTranslatorTest.testChronoListGeneration()
test_case.full_signature: @Test public void testChronoListGeneration()
test_case.identifier: testChronoListGeneration
test_case.invocations: createStraightNorth setActiveStation getStationByName updateWithNewStation toChronoListOfSurveyListEntries get size assertEquals getName getDestination getLeg
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testChronoListGeneration()
focal_class.file: app/src/main/java/org/hwyl/sexytopo/control/util/GraphToListTranslator.java
focal_class.identifier: GraphToListTranslator
focal_class.class_method_signature: GraphToListTranslator.toListOfSurveyListEntries(Survey survey)
focal_class.full_signature: public List<SurveyListEntry> toListOfSurveyListEntries(Survey survey)
focal_class.identifier: toListOfSurveyListEntries
focal_class.modifiers: public
focal_class.parameters: (Survey survey)
focal_class.return: List<SurveyListEntry>
focal_class.signature: List<SurveyListEntry> toListOfSurveyListEntries(Survey survey)
focal_class.class_method_signature: GraphToListTranslator.toChronoListOfSurveyListEntries(Survey survey)
focal_class.full_signature: public List<SurveyListEntry> toChronoListOfSurveyListEntries(Survey survey)
focal_class.identifier: toChronoListOfSurveyListEntries
focal_class.modifiers: public
focal_class.parameters: (Survey survey)
focal_class.return: List<SurveyListEntry>
focal_class.signature: List<SurveyListEntry> toChronoListOfSurveyListEntries(Survey survey)
focal_class.class_method_signature: GraphToListTranslator.toListOfColMaps(Survey survey)
focal_class.full_signature: public List<Map<TableCol, Object>> toListOfColMaps(Survey survey)
focal_class.identifier: toListOfColMaps
focal_class.modifiers: public
focal_class.parameters: (Survey survey)
focal_class.return: List<Map<TableCol, Object>>
focal_class.signature: List<Map<TableCol, Object>> toListOfColMaps(Survey survey)
focal_class.class_method_signature: GraphToListTranslator.createListOfEntriesFromStation(Station from)
focal_class.full_signature: private List<SurveyListEntry> createListOfEntriesFromStation(Station from)
focal_class.identifier: createListOfEntriesFromStation
focal_class.modifiers: private
focal_class.parameters: (Station from)
focal_class.return: List<SurveyListEntry>
focal_class.signature: List<SurveyListEntry> createListOfEntriesFromStation(Station from)
focal_class.class_method_signature: GraphToListTranslator.createMap(SurveyListEntry entry)
focal_class.full_signature: public static Map<TableCol, Object> createMap(SurveyListEntry entry)
focal_class.identifier: createMap
focal_class.modifiers: public static
focal_class.parameters: (SurveyListEntry entry)
focal_class.return: Map<TableCol, Object>
focal_class.signature: Map<TableCol, Object> createMap(SurveyListEntry entry)
focal_method.body: public List<SurveyListEntry> toChronoListOfSurveyListEntries(Survey survey) {
          final List<Leg> chronoLegs = survey.getAllLegsInChronoOrder();
          List<SurveyListEntry> entries = toListOfSurveyListEntries(survey);
          Collections.sort(entries, new Comparator<SurveyListEntry>() {
              @Override
              public int compare(SurveyListEntry e0, SurveyListEntry e1) {
                  return chronoLegs.indexOf(e0.leg) - chronoLegs.indexOf(e1.leg);
              }
          });
          return entries;
      }
focal_method.class_method_signature: GraphToListTranslator.toChronoListOfSurveyListEntries(Survey survey)
focal_method.full_signature: public List<SurveyListEntry> toChronoListOfSurveyListEntries(Survey survey)
focal_method.identifier: toChronoListOfSurveyListEntries
focal_method.invocations: getAllLegsInChronoOrder toListOfSurveyListEntries sort indexOf indexOf
focal_method.modifiers: public
focal_method.parameters: (Survey survey)
focal_method.return: List<SurveyListEntry>
focal_method.signature: List<SurveyListEntry> toChronoListOfSurveyListEntries(Survey survey)