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

cb.petal.Processor 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 Processor object
 *
 * @version $Id: Processor.java,v 1.8 2001/06/22 09:10:36 dahm Exp $
 * @author  M. Dahm
 */
public class Processor extends QuidObject {
  public Processor(PetalNode parent, Collection params) {
    super(parent, "Processor", params);
  }

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

  public void setNameParameter(String o) {
    params.set(0, o);
  }

  public String getNameParameter() {
    return (String)params.get(0);
  }

  public String getDocumentation() {
    return getPropertyAsString("documentation");
  }

  public void setDocumentation(String o) {
    defineProperty("documentation", o);
  }

  public PetalNodeList getConnections() {
    return (PetalNodeList)getProperty("connections");
  }

  public void setConnections(PetalNodeList o) {
    defineProperty("connections", o);
  }

  public String getCharacteristics() {
    return getPropertyAsString("characteristics");
  }

  public void setCharacteristics(String o) {
    defineProperty("characteristics", o);
  }

  public String getScheduling() {
    return getPropertyAsString("scheduling");
  }

  public void setScheduling(String o) {
    defineProperty("scheduling", o);
  }

  public PetalNodeList getProcesses() {
    return (PetalNodeList)getProperty("processes");
  }

  public void setProcesses(PetalNodeList o) {
    defineProperty("processes", o);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy