Program: 72533
Project: 72533
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);
  _rtia=null;
  _federateAmbassador=null;
  _hlaAttributesToPublish=new HashMap<String,Object[]>();
  _hlaAttributesSubscribedTo=new HashMap<String,Object[]>();
  _fromFederationEvents=new HashMap<String,LinkedList<TimedEvent>>();
  _objectIdToClassHandle=new HashMap<Integer,Integer>();
  _hlaStartTime=null;
  _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");
  eventBased=new Parameter(this,"String_Node_Str");
  eventBased.setTypeEquals(BaseType.BOOLEAN);
  eventBased.setExpression("String_Node_Str");
  eventBased.setDisplayName("String_Node_Str");
  attributeChanged(eventBased);
  timeStepped=new Parameter(this,"String_Node_Str");
  timeStepped.setTypeEquals(BaseType.BOOLEAN);
  timeStepped.setExpression("String_Node_Str");
  timeStepped.setDisplayName("String_Node_Str");
  attributeChanged(timeStepped);
  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);
  hlaStartTime=new Parameter(this,"String_Node_Str");
  hlaStartTime.setDisplayName("String_Node_Str");
  hlaStartTime.setExpression("String_Node_Str");
  hlaStartTime.setTypeEquals(BaseType.DOUBLE);
  attributeChanged(hlaStartTime);
  hlaTimeStep=new Parameter(this,"String_Node_Str");
  hlaTimeStep.setDisplayName("String_Node_Str");
  hlaTimeStep.setExpression("String_Node_Str");
  hlaTimeStep.setTypeEquals(BaseType.DOUBLE);
  hlaTimeStep.setVisibility(Settable.NOT_EDITABLE);
  attributeChanged(hlaTimeStep);
  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);
}

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);
  _rtia=null;
  _federateAmbassador=null;
  _hlaAttributesToPublish=new HashMap<String,Object[]>();
  _hlaAttributesSubscribedTo=new HashMap<String,Object[]>();
  _fromFederationEvents=new HashMap<String,LinkedList<TimedEvent>>();
  _objectIdToClassHandle=new HashMap<Integer,Integer>();
  _idToClasses=new HashMap<Integer,ComponentEntity>();
  _hlaStartTime=null;
  _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");
  eventBased=new Parameter(this,"String_Node_Str");
  eventBased.setTypeEquals(BaseType.BOOLEAN);
  eventBased.setExpression("String_Node_Str");
  eventBased.setDisplayName("String_Node_Str");
  attributeChanged(eventBased);
  timeStepped=new Parameter(this,"String_Node_Str");
  timeStepped.setTypeEquals(BaseType.BOOLEAN);
  timeStepped.setExpression("String_Node_Str");
  timeStepped.setDisplayName("String_Node_Str");
  attributeChanged(timeStepped);
  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);
  hlaStartTime=new Parameter(this,"String_Node_Str");
  hlaStartTime.setDisplayName("String_Node_Str");
  hlaStartTime.setExpression("String_Node_Str");
  hlaStartTime.setTypeEquals(BaseType.DOUBLE);
  attributeChanged(hlaStartTime);
  hlaTimeStep=new Parameter(this,"String_Node_Str");
  hlaTimeStep.setDisplayName("String_Node_Str");
  hlaTimeStep.setExpression("String_Node_Str");
  hlaTimeStep.setTypeEquals(BaseType.DOUBLE);
  hlaTimeStep.setVisibility(Settable.NOT_EDITABLE);
  attributeChanged(hlaTimeStep);
  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);
}