test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/timeseries/DayClusteringTest.java
test_class.identifier: DayClusteringTest
test_case.body: @Test
      public void testToString() {
          DayClustering cl0 = DayClustering.create(new int[]{1,1,1,1,1,0,0});
          DayClustering cl1 = DayClustering.create(new int[]{1,1,1,1,1,2,0});
          DayClustering cl2 = DayClustering.create(new int[]{1,2,3,4,5,6,0});
          assertTrue(cl0.toString().equalsIgnoreCase("td2"));
          assertTrue(cl1.toString().equalsIgnoreCase("td3"));
          assertTrue(cl2.toString().equalsIgnoreCase("td7"));
      }
test_case.class_method_signature: DayClusteringTest.testToString()
test_case.full_signature: @Test public void testToString()
test_case.identifier: testToString
test_case.invocations: create create create assertTrue equalsIgnoreCase toString assertTrue equalsIgnoreCase toString assertTrue equalsIgnoreCase toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToString()
focal_class.declarator: groups
focal_class.modifier: private final
focal_class.original_string: private final int[] groups;
focal_class.type: int[]
focal_class.var_name: groups
focal_class.declarator: TD7_IDX = new int[]{1, 2, 3, 4, 5, 6, 0}
focal_class.modifier: private static final
focal_class.original_string: private static final int[] TD7_IDX = new int[]{1, 2, 3, 4, 5, 6, 0}, 
              TD2_IDX = new int[]{1, 1, 1, 1, 1, 0, 0}, 
              TD3_IDX = new int[]{1, 1, 1, 1, 1, 2, 0},
              TD3C_IDX = new int[]{1, 1, 1, 1, 2, 2, 0},
              TD4_IDX = new int[]{1, 1, 1, 1, 2, 3, 0}
              ;
focal_class.type: int[]
focal_class.var_name: TD7_IDX
focal_class.declarator: SHORTNAMES = new String[]{"mon", "tue", "wed", "thu", "fri", "sat", "sun"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] SHORTNAMES = new String[]{"mon", "tue", "wed", "thu", "fri", "sat", "sun"};
focal_class.type: String[]
focal_class.var_name: SHORTNAMES
focal_class.declarator: TD2 = new DayClustering(TD2_IDX)
focal_class.modifier: public static final
focal_class.original_string: public static final DayClustering TD2 = new DayClustering(TD2_IDX), TD3 = new DayClustering(TD3_IDX)
              , TD3c = new DayClustering(TD3C_IDX)
              , TD4 = new DayClustering(TD4_IDX), TD7 = new DayClustering(TD7_IDX);
focal_class.type: DayClustering
focal_class.var_name: TD2
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/timeseries/DayClustering.java
focal_class.identifier: DayClustering
focal_class.class_method_signature: DayClustering.create(int[] groups)
focal_class.full_signature: public static DayClustering create(int[] groups)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (int[] groups)
focal_class.return: DayClustering
focal_class.signature: DayClustering create(int[] groups)
focal_class.class_method_signature: DayClustering.checkGroups(int[] groups)
focal_class.full_signature: private static boolean checkGroups(int[] groups)
focal_class.identifier: checkGroups
focal_class.modifiers: private static
focal_class.parameters: (int[] groups)
focal_class.return: boolean
focal_class.signature: boolean checkGroups(int[] groups)
focal_class.class_method_signature: DayClustering.DayClustering(final int[] groups)
focal_class.full_signature:   DayClustering(final int[] groups)
focal_class.identifier: DayClustering
focal_class.parameters: (final int[] groups)
focal_class.signature:  DayClustering(final int[] groups)
focal_class.class_method_signature: DayClustering.getGroup(java.time.DayOfWeek dw)
focal_class.full_signature: public int getGroup(java.time.DayOfWeek dw)
focal_class.identifier: getGroup
focal_class.modifiers: public
focal_class.parameters: (java.time.DayOfWeek dw)
focal_class.return: int
focal_class.signature: int getGroup(java.time.DayOfWeek dw)
focal_class.class_method_signature: DayClustering.getGroupsCount()
focal_class.full_signature: public int getGroupsCount()
focal_class.identifier: getGroupsCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getGroupsCount()
focal_class.class_method_signature: DayClustering.getGroupCount(int idx)
focal_class.full_signature: public int getGroupCount(int idx)
focal_class.identifier: getGroupCount
focal_class.modifiers: public
focal_class.parameters: (int idx)
focal_class.return: int
focal_class.signature: int getGroupCount(int idx)
focal_class.class_method_signature: DayClustering.group(int idx)
focal_class.full_signature: public java.time.DayOfWeek[] group(int idx)
focal_class.identifier: group
focal_class.modifiers: public
focal_class.parameters: (int idx)
focal_class.return: java.time.DayOfWeek[]
focal_class.signature: java.time.DayOfWeek[] group(int idx)
focal_class.class_method_signature: DayClustering.positions(int idx)
focal_class.full_signature: public int[] positions(int idx)
focal_class.identifier: positions
focal_class.modifiers: public
focal_class.parameters: (int idx)
focal_class.return: int[]
focal_class.signature: int[] positions(int idx)
focal_class.class_method_signature: DayClustering.allPositions()
focal_class.full_signature: public int[][] allPositions()
focal_class.identifier: allPositions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[][]
focal_class.signature: int[][] allPositions()
focal_class.class_method_signature: DayClustering.isInside(DayClustering dc)
focal_class.full_signature: public boolean isInside(DayClustering dc)
focal_class.identifier: isInside
focal_class.modifiers: public
focal_class.parameters: (DayClustering dc)
focal_class.return: boolean
focal_class.signature: boolean isInside(DayClustering dc)
focal_class.class_method_signature: DayClustering.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: DayClustering.toString(int i)
focal_class.full_signature: public String toString(int i)
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: String
focal_class.signature: String toString(int i)
focal_class.class_method_signature: DayClustering.getGroupsDefinition()
focal_class.full_signature: public int[] getGroupsDefinition()
focal_class.identifier: getGroupsDefinition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] getGroupsDefinition()
focal_method.body: @Override
      public String toString() {
          if (Arrays.equals(groups, TD7_IDX)) {
              return "TD7";
          }
          if (Arrays.equals(groups, TD2_IDX)) {
              return "TD2";
          }
          if (Arrays.equals(groups, TD3_IDX)) {
              return "TD3";
          }
          if (Arrays.equals(groups, TD3C_IDX)) {
              return "TD3c";
          }
          if (Arrays.equals(groups, TD4_IDX)) {
              return "TD4";
          }
          StringBuilder builder = new StringBuilder();
          int ng = getGroupsCount();
          for (int i = 0; i < ng; ++i) {
              builder.append('{').append(toString(i)).append('}');
          }
          return builder.toString();
      }
focal_method.class_method_signature: DayClustering.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: equals equals equals equals equals getGroupsCount append append append toString toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()