code: public static Pattern controlsStateChange()
  	{
  		Pattern p = new Pattern(SequenceEntityReference.class, "controller ER");
  		p.add(linkedER(true), "controller ER", "generic controller ER");
  		p.add(erToPE(), "generic controller ER", "controller simple PE");
  		p.add(linkToComplex(), "controller simple PE", "controller PE");
  		p.add(peToControl(), "controller PE", "Control");
  		p.add(controlToConv(), "Control", "Conversion");
  		p.add(new NOT(participantER()), "Conversion", "controller ER");
  		p.add(new Participant(RelType.INPUT, true), "Control", "Conversion", "input PE");
  
  		p.add(new NOT(new ConversionSide(ConversionSide.Type.OTHER_SIDE)), "input PE", "Conversion", "input PE");
  
  		p.add(linkToSpecific(), "input PE", "input simple PE");
  		p.add(new Type(SequenceEntity.class), "input simple PE");
  		p.add(peToER(), "input simple PE", "changed generic ER");
  		p.add(new ConversionSide(ConversionSide.Type.OTHER_SIDE), "input PE", "Conversion", "output PE");
  
  		p.add(new NOT(new ConversionSide(ConversionSide.Type.OTHER_SIDE)), "output PE", "Conversion", "output PE");
  
  		p.add(equal(false), "input PE", "output PE");
  		p.add(linkToSpecific(), "output PE", "output simple PE");
  		p.add(peToER(), "output simple PE", "changed generic ER");
  		p.add(linkedER(false), "changed generic ER", "changed ER");
  
  		return p;
  	}
docs: Pattern for a EntityReference has a member PhysicalEntity that is controlling a state change
  reaction of another EntityReference.
  @return the pattern