Adding the functions for parsing the events and the conditions in
GraphFactory.
Changing names :
-addEvents to add in action
-getState to retrieveState in GraphFactory