public List<Transition> getTransitionsByState(String stateValue){
        List<Transition> tempList = new ArrayList<Transition>();
        for(Transition tran: transitions){
            if(tran.mathByStateValue(stateValue))
                tempList.add(tran);
        }
        return tempList;
    }