All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cb.petal.State Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2001 Markus Dahm
 * Copyright (C) 2015-2018 BITPlan GmbH http://www.bitplan.com
 *
 * This source is part of
 * https://github.com/BITPlan/CrazyBeans
 * and the license as outlined there applies
 */
package cb.petal;
import java.util.Collection;

/**
 * Represents State object
 *
 * @version $Id: State.java,v 1.8 2001/06/22 09:10:36 dahm Exp $
 * @author  M. Dahm
 */
public class State extends NamedQuidObject {
  public State(PetalNode parent, Collection params) {
    super(parent, "State", params);
  }

  public State() {
    super("State");
  }

  public PetalNodeList getTransitions() {
    return (PetalNodeList)getProperty("transitions");
  }

  public void setTransitions(PetalNodeList o) {
    defineProperty("transitions", o);
  }

  public String getType() {
    return getPropertyAsString("type");
  }

  public void setType(String o) {
    defineProperty("type", o);
  }

  public PetalNodeList getActions() {
    return (PetalNodeList)getProperty("actions");
  }

  public void setActions(PetalNodeList o) {
    defineProperty("actions", o);
  }

  public StateMachine getStateMachine() {
    return (StateMachine)getProperty("statemachine");
  }

  public void setStateMachine(StateMachine o) {
    defineProperty("statemachine", o);
  }

  public void accept(Visitor v) {
    v.visit(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy