blob: 40e040698e89c4b53550554aeee8d99e81c3af13 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.ote.statemachine;
public class Change extends BaseInput{
private Object obj;
private String name;
public Change(StateMachine sm, Object obj){
super(sm);
this.obj = obj;
}
public Change(StateMachine sm, Object obj, String name){
super(sm);
this.obj = obj;
this.name = name;
}
@Override
public
Object getType() {
return obj;
}
public String toString(){
if(name != null){
return this.name;
} else {
return obj.toString();
}
}
}