public void add( Event anEvent ) { events.put( anEvent.getName(), anEvent ); anEvent.setStateMachine( this );
public void add( State aState ) { states.add( aState ); stateNames.put( aState.getName(), aState); aState.setStateMachine( this );
	public void add( Event anEvent ) {		events.put( anEvent.getName(), anEvent );		anEvent.setStateMachine( this );	}