package docs;
//package model.stateflow;
//
//import java.util.ArrayList;
//
//import org.w3c.dom.Node;
//
//public class SF_STransition extends SF_Transition {
//	private ArrayList<String> conditions = new ArrayList<String>();
//	private ArrayList<String> cActions = new ArrayList<String>();
//
//	public SF_STransition(Node node) {
//		super(node);
//		System.out.print("Initialize STranstion with a node is not expected!");
//	}
//
//	public SF_STransition(String source, String target, String event,
//			ArrayList<String> conditions, ArrayList<String> cActions,
//			String tAction, int order) {
//		super.setSource(source);
//		super.setTarget(target);
//		super.setEvent(event);
//		this.conditions = new ArrayList<String>(conditions);
//		this.cActions = new ArrayList<String>(cActions);
//		super.settAction(tAction);
//		super.setOrder(order);
//	}
//
//	public boolean isSTransition() {
//		return true;
//	}
//
//	public String getSTransitionProcess() {
//		String process = "(" + super.getEvent() + "=e) -> (";
//		String end = ")";
//		for (int i = 0; i < this.conditions.size(); i++) {
//			process += this.conditions.get(i) + " -> (" + this.cActions.get(i)
//					+ ";";
//			end += ")";
//		}
//		if (super.getTarget().startsWith("S") && super.gettAction() != null)
//			process += super.gettAction();
//		else
//			process = process.substring(0, process.length() - 1);
//		process += end;
//		return process;
//	}
//
//	// get and set functions
//	public ArrayList<String> getConditions() {
//		return conditions;
//	}
//
//	public void setConditions(ArrayList<String> conditions) {
//		this.conditions = conditions;
//	}
//
//	public ArrayList<String> getcActions() {
//		return cActions;
//	}
//
//	public void setcActions(ArrayList<String> cActions) {
//		this.cActions = cActions;
//	}
//
//}
