org.nuiton.eugene.models.state.xml.StateModelStateImpl Maven / Gradle / Ivy
/*
* #%L
* EUGene :: EUGene
*
* $Id: StateModelStateImpl.java 863 2010-04-15 14:22:49Z tchemit $
* $HeadURL: http://svn.nuiton.org/svn/eugene/tags/eugene-2.1.1/eugene/src/main/java/org/nuiton/eugene/models/state/xml/StateModelStateImpl.java $
* %%
* Copyright (C) 2004 - 2010 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
* .
* #L%
*/
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: 863 $
*
* Last update : $Date: 2010-04-15 16:22:49 +0200 (jeu., 15 avril 2010) $
* By : */
/**
* StateModelStateImpl.java
*
* @author chatellier
* @version $Revision: 863 $
*
* Last update : $Date: 2010-04-15 16:22:49 +0200 (jeu., 15 avril 2010) $
* By : */
public class StateModelStateImpl implements StateModelState {
/**
* State name
*/
protected String name;
/**
* Transition list
*/
protected List listTransitions;
/**
* Constructor
*/
public StateModelStateImpl() {
listTransitions = new ArrayList();
}
@Override
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);
}
@Override
public List getTransitions() {
return listTransitions;
}
@Override
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