code: public static Pattern actChange(boolean activating,
  		Map<EntityReference, Set<ModificationFeature>> activityFeat,
  		Map<EntityReference, Set<ModificationFeature>> inactivityFeat)
  	{
  		Pattern p = peInOut();
  		p.add(new OR(
  			new MappedConst(differentialActivity(activating), 0, 1),
  			new MappedConst(new ActivityModificationChangeConstraint(
  				activating, activityFeat, inactivityFeat), 0, 1)),
  			"input simple PE", "output simple PE");
  		return p;
  	}
docs: Pattern for the activity of an EntityReference is changed through a Conversion.
  @param activating desired change
  @param activityFeat modification features associated with activity
  @param inactivityFeat modification features associated with inactivity
  @return the pattern