org.nuiton.eugene.models.state.xml.StateModelStateImpl Maven / Gradle / Ivy
/* *##%
* EUGene :: EUGene
* Copyright (C) 2004 - 2009 CodeLutin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* ##%*/
package org.nuiton.eugene.models.state.xml;
import java.util.ArrayList;
import java.util.List;
import org.nuiton.eugene.models.state.StateModelState;
import org.nuiton.eugene.models.state.StateModelTransition;
/**
* StateModelStateImpl.java
*
* @author chatellier
* @version $Revision: 755 $
*
* Last update : $Date: 2009-12-15 00:50:27 +0100 (mar., 15 déc. 2009) $
* By : $Author: tchemit $
*/
/**
* StateModelStateImpl.java
*
* @author chatellier
* @version $Revision: 755 $
*
* Last update : $Date: 2009-12-15 00:50:27 +0100 (mar., 15 déc. 2009) $
* By : $Author: tchemit $
*/
public class StateModelStateImpl implements StateModelState {
/**
* State name
*/
protected String name;
/**
* Transition list
*/
protected List listTransitions;
/**
* Constructor
*/
public StateModelStateImpl() {
super();
listTransitions = new ArrayList();
}
/* (non-Javadoc)
* @see org.nuiton.eugene.models.state.StateModelState#getName()
*/
public String getName() {
return name;
}
/**
* Set state name
* @param name the name
*/
public void setName(String name) {
this.name = name;
}
/**
* Add transition
* @param transition a transition
*/
public void addTransition(StateModelTransition transition) {
listTransitions.add(transition);
}
/* (non-Javadoc)
* @see org.nuiton.eugene.models.state.StateModelState#getTransitions()
*/
public List getTransitions() {
return listTransitions;
}
/* (non-Javadoc)
* @see org.nuiton.eugene.models.state.StateModelState#isComplexe()
*/
public boolean isComplex() {
return false;
}
/* (non-Javadoc)
* @see org.nuiton.eugene.models.state.StateModelState#isFinal()
*/
public boolean isFinal() {
return false;
}
/* (non-Javadoc)
* @see org.nuiton.eugene.models.state.StateModelState#isInitial()
*/
public boolean isInitial() {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy