test_class.file: contrib/src/test/java/macrobase/analysis/contextualoutlier/LatticeNodeTest.java
test_class.identifier: LatticeNodeTest
test_case.body: @Test
      public void latticeNodeTest() {
          LatticeNode node0 = new LatticeNode(0);
          LatticeNode node1 = new LatticeNode(1);
          LatticeNode node2 = new LatticeNode(2);
          
          List<ContextualDatum> data = new ArrayList<>();
          
          LatticeNode node01 = node0.join(node1, data, 1.0);
          LatticeNode node02 = node0.join(node2, data, 1.0);
          LatticeNode node12 = node1.join(node2, data, 1.0);
  
          assertEquals(node01.getDimensions().contains(0),true);
          assertEquals(node01.getDimensions().contains(1),true);
          
          assertEquals(node02.getDimensions().contains(0),true);
          assertEquals(node02.getDimensions().contains(2),true);
          
          assertEquals(node12.getDimensions().contains(1),true);
          assertEquals(node12.getDimensions().contains(2),true);
          
          LatticeNode node012 = node01.join(node02, data, 1.0);
          assertEquals(node012.getDimensions().contains(0),true);
          assertEquals(node012.getDimensions().contains(1),true);
          assertEquals(node012.getDimensions().contains(2),true);
          node012.clear();
          assertEquals(node012.getDimensions().size(),0);
  
          LatticeNode node012Null = node12.join(node02, data, 1.0);
          assertEquals(node012Null,null);
          
          List<LatticeNode> latticeNodeByDimensions = new ArrayList<LatticeNode>();
          latticeNodeByDimensions.add(node12);
          latticeNodeByDimensions.add(node02);
          latticeNodeByDimensions.add(node01);
          assertEquals(latticeNodeByDimensions.get(0),node12);
          assertEquals(latticeNodeByDimensions.get(1),node02);
          assertEquals(latticeNodeByDimensions.get(2),node01);
          Collections.sort(latticeNodeByDimensions, new LatticeNode.DimensionComparator());
          assertEquals(latticeNodeByDimensions.get(0),node01);
          assertEquals(latticeNodeByDimensions.get(1),node02);
          assertEquals(latticeNodeByDimensions.get(2),node12);
          
          LatticeNode node01Copy = node1.join(node0, data, 1.0);
          latticeNodeByDimensions.add(node01Copy);
          Collections.sort(latticeNodeByDimensions, new LatticeNode.DimensionComparator());
          assertEquals(latticeNodeByDimensions.get(0),node01);
          assertEquals(latticeNodeByDimensions.get(1),node01Copy);
  
          LatticeNode node00 = node0.join(node0, data, 1.0);
          assertEquals(node00,null);
          
          latticeNodeByDimensions.remove(node01Copy);
          latticeNodeByDimensions.add(node01);
          Collections.sort(latticeNodeByDimensions, new LatticeNode.DimensionComparator());
          assertEquals(latticeNodeByDimensions.get(0),node01);
          assertEquals(latticeNodeByDimensions.get(1),node01);
          //assertEquals(latticeNodeByDimensions.get(2),node01Copy);
      }
test_case.class_method_signature: LatticeNodeTest.latticeNodeTest()
test_case.full_signature: @Test public void latticeNodeTest()
test_case.identifier: latticeNodeTest
test_case.invocations: join join join assertEquals contains getDimensions assertEquals contains getDimensions assertEquals contains getDimensions assertEquals contains getDimensions assertEquals contains getDimensions assertEquals contains getDimensions join assertEquals contains getDimensions assertEquals contains getDimensions assertEquals contains getDimensions clear assertEquals size getDimensions join assertEquals add add add assertEquals get assertEquals get assertEquals get sort assertEquals get assertEquals get assertEquals get join add sort assertEquals get assertEquals get join assertEquals remove add sort assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void latticeNodeTest()
focal_class.declarator: dimensions
focal_class.original_string: List<Integer> dimensions;
focal_class.type: List<Integer>
focal_class.var_name: dimensions
focal_class.declarator: denseContexts
focal_class.original_string: List<Context> denseContexts;
focal_class.type: List<Context>
focal_class.var_name: denseContexts
focal_class.file: contrib/src/main/java/macrobase/analysis/contextualoutlier/LatticeNode.java
focal_class.identifier: LatticeNode
focal_class.class_method_signature: LatticeNode.LatticeNode(int dimension)
focal_class.full_signature: public  LatticeNode(int dimension)
focal_class.identifier: LatticeNode
focal_class.modifiers: public
focal_class.parameters: (int dimension)
focal_class.signature:  LatticeNode(int dimension)
focal_class.class_method_signature: LatticeNode.LatticeNode(List<Integer> dimensions)
focal_class.full_signature: public  LatticeNode(List<Integer> dimensions)
focal_class.identifier: LatticeNode
focal_class.modifiers: public
focal_class.parameters: (List<Integer> dimensions)
focal_class.signature:  LatticeNode(List<Integer> dimensions)
focal_class.class_method_signature: LatticeNode.getDenseContexts()
focal_class.full_signature: public List<Context> getDenseContexts()
focal_class.identifier: getDenseContexts
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Context>
focal_class.signature: List<Context> getDenseContexts()
focal_class.class_method_signature: LatticeNode.addDenseContext(Context c)
focal_class.full_signature: public void addDenseContext(Context c)
focal_class.identifier: addDenseContext
focal_class.modifiers: public
focal_class.parameters: (Context c)
focal_class.return: void
focal_class.signature: void addDenseContext(Context c)
focal_class.class_method_signature: LatticeNode.join(LatticeNode other, List<ContextualDatum> data, double tau)
focal_class.full_signature: public LatticeNode join(LatticeNode other, List<ContextualDatum> data, double tau)
focal_class.identifier: join
focal_class.modifiers: public
focal_class.parameters: (LatticeNode other, List<ContextualDatum> data, double tau)
focal_class.return: LatticeNode
focal_class.signature: LatticeNode join(LatticeNode other, List<ContextualDatum> data, double tau)
focal_class.class_method_signature: LatticeNode.getDimensions()
focal_class.full_signature: public List<Integer> getDimensions()
focal_class.identifier: getDimensions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getDimensions()
focal_class.class_method_signature: LatticeNode.joinedDimensions(LatticeNode other)
focal_class.full_signature: public List<Integer> joinedDimensions(LatticeNode other)
focal_class.identifier: joinedDimensions
focal_class.modifiers: public
focal_class.parameters: (LatticeNode other)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> joinedDimensions(LatticeNode other)
focal_class.class_method_signature: LatticeNode.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_method.body: public LatticeNode(int dimension) {
          dimensions = new ArrayList<Integer>();
          dimensions.add(dimension);
          denseContexts = new ArrayList<Context>();
      }
focal_method.class_method_signature: LatticeNode.LatticeNode(int dimension)
focal_method.full_signature: public  LatticeNode(int dimension)
focal_method.identifier: LatticeNode
focal_method.modifiers: public
focal_method.parameters: (int dimension)
focal_method.signature:  LatticeNode(int dimension)