test_class.file: flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/scheduler/CoLocationConstraintTest.java
test_class.identifier: CoLocationConstraintTest
test_case.body: @Test
  	public void testCreateConstraints() {
  		try {
  			JobVertexID id1 = new JobVertexID();
  			JobVertexID id2 = new JobVertexID();
  
  			JobVertex vertex1 = new JobVertex("vertex1", id1);
  			vertex1.setParallelism(2);
  			
  			JobVertex vertex2 = new JobVertex("vertex2", id2);
  			vertex2.setParallelism(3);
  			
  			CoLocationGroup group = new CoLocationGroup(vertex1, vertex2);
  			
  			AbstractID groupId = group.getId();
  			assertNotNull(groupId);
  			
  			CoLocationConstraint constraint1 = group.getLocationConstraint(0);
  			CoLocationConstraint constraint2 = group.getLocationConstraint(1);
  			CoLocationConstraint constraint3 = group.getLocationConstraint(2);
  			
  			assertFalse(constraint1 == constraint2);
  			assertFalse(constraint1 == constraint3);
  			assertFalse(constraint2 == constraint3);
  			
  			assertEquals(groupId, constraint1.getGroupId());
  			assertEquals(groupId, constraint2.getGroupId());
  			assertEquals(groupId, constraint3.getGroupId());
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  			fail(e.getMessage());
  		}
  	}
test_case.class_method_signature: CoLocationConstraintTest.testCreateConstraints()
test_case.full_signature: @Test public void testCreateConstraints()
test_case.identifier: testCreateConstraints
test_case.invocations: setParallelism setParallelism getId assertNotNull getLocationConstraint getLocationConstraint getLocationConstraint assertFalse assertFalse assertFalse assertEquals getGroupId assertEquals getGroupId assertEquals getGroupId printStackTrace fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateConstraints()
focal_class.declarator: group
focal_class.modifier: private final
focal_class.original_string: private final CoLocationGroup group;
focal_class.type: CoLocationGroup
focal_class.var_name: group
focal_class.declarator: sharedSlot
focal_class.modifier: private volatile
focal_class.original_string: private volatile SharedSlot sharedSlot;
focal_class.type: SharedSlot
focal_class.var_name: sharedSlot
focal_class.declarator: locationLocked
focal_class.modifier: private volatile
focal_class.original_string: private volatile boolean locationLocked;
focal_class.type: boolean
focal_class.var_name: locationLocked
focal_class.file: flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/scheduler/CoLocationConstraint.java
focal_class.identifier: CoLocationConstraint
focal_class.class_method_signature: CoLocationConstraint.CoLocationConstraint(CoLocationGroup group)
focal_class.full_signature:   CoLocationConstraint(CoLocationGroup group)
focal_class.identifier: CoLocationConstraint
focal_class.parameters: (CoLocationGroup group)
focal_class.signature:  CoLocationConstraint(CoLocationGroup group)
focal_class.class_method_signature: CoLocationConstraint.getSharedSlot()
focal_class.full_signature: public SharedSlot getSharedSlot()
focal_class.identifier: getSharedSlot
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SharedSlot
focal_class.signature: SharedSlot getSharedSlot()
focal_class.class_method_signature: CoLocationConstraint.getGroupId()
focal_class.full_signature: public AbstractID getGroupId()
focal_class.identifier: getGroupId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: AbstractID
focal_class.signature: AbstractID getGroupId()
focal_class.class_method_signature: CoLocationConstraint.isAssigned()
focal_class.full_signature: public boolean isAssigned()
focal_class.identifier: isAssigned
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAssigned()
focal_class.class_method_signature: CoLocationConstraint.isAssignedAndAlive()
focal_class.full_signature: public boolean isAssignedAndAlive()
focal_class.identifier: isAssignedAndAlive
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAssignedAndAlive()
focal_class.class_method_signature: CoLocationConstraint.getLocation()
focal_class.full_signature: public Instance getLocation()
focal_class.identifier: getLocation
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Instance
focal_class.signature: Instance getLocation()
focal_class.class_method_signature: CoLocationConstraint.setSharedSlot(SharedSlot newSlot)
focal_class.full_signature: public void setSharedSlot(SharedSlot newSlot)
focal_class.identifier: setSharedSlot
focal_class.modifiers: public
focal_class.parameters: (SharedSlot newSlot)
focal_class.return: void
focal_class.signature: void setSharedSlot(SharedSlot newSlot)
focal_class.class_method_signature: CoLocationConstraint.lockLocation()
focal_class.full_signature: public void lockLocation()
focal_class.identifier: lockLocation
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void lockLocation()
focal_class.class_method_signature: CoLocationConstraint.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_method.body: public AbstractID getGroupId() {
  		return this.group.getId();
  	}
focal_method.class_method_signature: CoLocationConstraint.getGroupId()
focal_method.full_signature: public AbstractID getGroupId()
focal_method.identifier: getGroupId
focal_method.invocations: getId
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: AbstractID
focal_method.signature: AbstractID getGroupId()