Program: 72435
Project: 72435
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);
  _numberOfNERs=0;
  _numberOfTARs=0;
  _numberOfTAGs=0;
  file=new TxtFile("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);
  _numberOfNERs=0;
  _numberOfTARs=0;
  _numberOfTAGs=0;
  _file=_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);
}