Program: 72430
Project: 72430
Buggy source:
/** 
 * Construct a HlaManager with a name and a container. The container argument must not be null, or a NullPointerException will be thrown. This actor will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
 * @param container Container of this attribute.
 * @param name Name of this attribute.
 * @exception IllegalActionException If the container is incompatiblewith this actor.
 * @exception NameDuplicationException If the name coincides withan actor already in the container.
 */
public HlaManager(CompositeEntity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  _testsFolder=_createFolder("String_Node_Str");
  _file=_createTextFile("String_Node_Str");
  _csvFile=_createTextFile("String_Node_Str");
  _noObjectDicovered=true;
  _rtia=null;
  _federateAmbassador=null;
  _registeredObject=new HashMap<String,Integer>();
  _hlaAttributesToPublish=new HashMap<String,Object[]>();
  _hlaAttributesSubscribedTo=new HashMap<String,Object[]>();
  _fromFederationEvents=new HashMap<String,LinkedList<TimedEvent>>();
  _objectIdToClassHandle=new HashMap<Integer,Integer>();
  _strucuralInformation=new HashMap<Integer,StructuralInformation>();
  _hlaTimeStep=null;
  _hlaLookAHead=null;
  federateName=new Parameter(this,"String_Node_Str");
  federateName.setDisplayName("String_Node_Str");
  federateName.setTypeEquals(BaseType.STRING);
  federateName.setExpression("String_Node_Str");
  attributeChanged(federateName);
  federationName=new Parameter(this,"String_Node_Str");
  federationName.setDisplayName("String_Node_Str");
  federationName.setTypeEquals(BaseType.STRING);
  federationName.setExpression("String_Node_Str");
  attributeChanged(federationName);
  fedFile=new FileParameter(this,"String_Node_Str");
  fedFile.setDisplayName("String_Node_Str");
  new Parameter(fedFile,"String_Node_Str",BooleanToken.TRUE);
  new Parameter(fedFile,"String_Node_Str",BooleanToken.FALSE);
  fedFile.setExpression("String_Node_Str");
  timeManagementService=new ChoiceParameter(this,"String_Node_Str",ETimeManagementService.class);
  timeManagementService.setDisplayName("String_Node_Str");
  attributeChanged(timeManagementService);
  hlaTimeStep=new Parameter(this,"String_Node_Str");
  hlaTimeStep.setDisplayName("String_Node_Str");
  hlaTimeStep.setExpression("String_Node_Str");
  hlaTimeStep.setTypeEquals(BaseType.DOUBLE);
  attributeChanged(hlaTimeStep);
  isTimeConstrained=new Parameter(this,"String_Node_Str");
  isTimeConstrained.setTypeEquals(BaseType.BOOLEAN);
  isTimeConstrained.setExpression("String_Node_Str");
  isTimeConstrained.setDisplayName("String_Node_Str");
  isTimeConstrained.setVisibility(Settable.NOT_EDITABLE);
  attributeChanged(isTimeConstrained);
  isTimeRegulator=new Parameter(this,"String_Node_Str");
  isTimeRegulator.setTypeEquals(BaseType.BOOLEAN);
  isTimeRegulator.setExpression("String_Node_Str");
  isTimeRegulator.setDisplayName("String_Node_Str");
  isTimeRegulator.setVisibility(Settable.NOT_EDITABLE);
  attributeChanged(isTimeRegulator);
  hlaLookAHead=new Parameter(this,"String_Node_Str");
  hlaLookAHead.setDisplayName("String_Node_Str");
  hlaLookAHead.setExpression("String_Node_Str");
  hlaLookAHead.setTypeEquals(BaseType.DOUBLE);
  attributeChanged(hlaLookAHead);
  requireSynchronization=new Parameter(this,"String_Node_Str");
  requireSynchronization.setTypeEquals(BaseType.BOOLEAN);
  requireSynchronization.setExpression("String_Node_Str");
  requireSynchronization.setDisplayName("String_Node_Str");
  attributeChanged(requireSynchronization);
  synchronizationPointName=new Parameter(this,"String_Node_Str");
  synchronizationPointName.setDisplayName("String_Node_Str");
  synchronizationPointName.setTypeEquals(BaseType.STRING);
  synchronizationPointName.setExpression("String_Node_Str");
  attributeChanged(synchronizationPointName);
  isCreator=new Parameter(this,"String_Node_Str");
  isCreator.setTypeEquals(BaseType.BOOLEAN);
  isCreator.setExpression("String_Node_Str");
  isCreator.setDisplayName("String_Node_Str");
  attributeChanged(isCreator);
  hlaTimeUnit=new Parameter(this,"String_Node_Str");
  hlaTimeUnit.setTypeEquals(BaseType.DOUBLE);
  hlaTimeUnit.setExpression("String_Node_Str");
  hlaTimeUnit.setDisplayName("String_Node_Str");
  attributeChanged(hlaTimeUnit);
}

Fixed version (ground truth):
/** 
 * Construct a HlaManager with a name and a container. The container argument must not be null, or a NullPointerException will be thrown. This actor will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
 * @param container Container of this attribute.
 * @param name Name of this attribute.
 * @exception IllegalActionException If the container is incompatiblewith this actor.
 * @exception NameDuplicationException If the name coincides withan actor already in the container.
 */
public HlaManager(CompositeEntity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  try {
    _testsFolder=_createFolder("String_Node_Str");
  }
 catch (  IOException ex) {
    throw new IllegalActionException(this,ex,"String_Node_Str");
  }
  _file=_createTextFile("String_Node_Str");
  _csvFile=_createTextFile("String_Node_Str");
  _noObjectDicovered=true;
  _rtia=null;
  _federateAmbassador=null;
  _registeredObject=new HashMap<String,Integer>();
  _hlaAttributesToPublish=new HashMap<String,Object[]>();
  _hlaAttributesSubscribedTo=new HashMap<String,Object[]>();
  _fromFederationEvents=new HashMap<String,LinkedList<TimedEvent>>();
  _objectIdToClassHandle=new HashMap<Integer,Integer>();
  _strucuralInformation=new HashMap<Integer,StructuralInformation>();
  _hlaTimeStep=null;
  _hlaLookAHead=null;
  federateName=new Parameter(this,"String_Node_Str");
  federateName.setDisplayName("String_Node_Str");
  federateName.setTypeEquals(BaseType.STRING);
  federateName.setExpression("String_Node_Str");
  attributeChanged(federateName);
  federationName=new Parameter(this,"String_Node_Str");
  federationName.setDisplayName("String_Node_Str");
  federationName.setTypeEquals(BaseType.STRING);
  federationName.setExpression("String_Node_Str");
  attributeChanged(federationName);
  fedFile=new FileParameter(this,"String_Node_Str");
  fedFile.setDisplayName("String_Node_Str");
  new Parameter(fedFile,"String_Node_Str",BooleanToken.TRUE);
  new Parameter(fedFile,"String_Node_Str",BooleanToken.FALSE);
  fedFile.setExpression("String_Node_Str");
  timeManagementService=new ChoiceParameter(this,"String_Node_Str",ETimeManagementService.class);
  timeManagementService.setDisplayName("String_Node_Str");
  attributeChanged(timeManagementService);
  hlaTimeStep=new Parameter(this,"String_Node_Str");
  hlaTimeStep.setDisplayName("String_Node_Str");
  hlaTimeStep.setExpression("String_Node_Str");
  hlaTimeStep.setTypeEquals(BaseType.DOUBLE);
  attributeChanged(hlaTimeStep);
  isTimeConstrained=new Parameter(this,"String_Node_Str");
  isTimeConstrained.setTypeEquals(BaseType.BOOLEAN);
  isTimeConstrained.setExpression("String_Node_Str");
  isTimeConstrained.setDisplayName("String_Node_Str");
  isTimeConstrained.setVisibility(Settable.NOT_EDITABLE);
  attributeChanged(isTimeConstrained);
  isTimeRegulator=new Parameter(this,"String_Node_Str");
  isTimeRegulator.setTypeEquals(BaseType.BOOLEAN);
  isTimeRegulator.setExpression("String_Node_Str");
  isTimeRegulator.setDisplayName("String_Node_Str");
  isTimeRegulator.setVisibility(Settable.NOT_EDITABLE);
  attributeChanged(isTimeRegulator);
  hlaLookAHead=new Parameter(this,"String_Node_Str");
  hlaLookAHead.setDisplayName("String_Node_Str");
  hlaLookAHead.setExpression("String_Node_Str");
  hlaLookAHead.setTypeEquals(BaseType.DOUBLE);
  attributeChanged(hlaLookAHead);
  requireSynchronization=new Parameter(this,"String_Node_Str");
  requireSynchronization.setTypeEquals(BaseType.BOOLEAN);
  requireSynchronization.setExpression("String_Node_Str");
  requireSynchronization.setDisplayName("String_Node_Str");
  attributeChanged(requireSynchronization);
  synchronizationPointName=new Parameter(this,"String_Node_Str");
  synchronizationPointName.setDisplayName("String_Node_Str");
  synchronizationPointName.setTypeEquals(BaseType.STRING);
  synchronizationPointName.setExpression("String_Node_Str");
  attributeChanged(synchronizationPointName);
  isCreator=new Parameter(this,"String_Node_Str");
  isCreator.setTypeEquals(BaseType.BOOLEAN);
  isCreator.setExpression("String_Node_Str");
  isCreator.setDisplayName("String_Node_Str");
  attributeChanged(isCreator);
  hlaTimeUnit=new Parameter(this,"String_Node_Str");
  hlaTimeUnit.setTypeEquals(BaseType.DOUBLE);
  hlaTimeUnit.setExpression("String_Node_Str");
  hlaTimeUnit.setDisplayName("String_Node_Str");
  attributeChanged(hlaTimeUnit);
}