/*******************************************************************************
* Copyright (c) 2009 University of Edinburgh.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the BSD Licence, which accompanies this feature
* and can be downloaded from http://groups.inf.ed.ac.uk/pepa/update/licence.txt
******************************************************************************/
package uk.ac.ed.inf.biopepa.core.dom;
import uk.ac.ed.inf.biopepa.core.BioPEPAException;
/**
* The definition of a component in the system equation, i.e.
*
* <pre>
* C(3)
* </pre>
*
* @author mtribast
*
*/
public class Component extends Expression {
private Name name;
private Expression level;
/**
* @return the name
*/
public Name getName() {
return name;
}
/**
* @param name
* the name to set
*/
public void setName(Name name) {
this.name = name;
}
/**
* @return the level
*/
public Expression getLevel() {
return level;
}
/**
* @param level
* the level to set
*/
public void setLevel(Expression level) {
this.level = level;
}
Component(AST ast) {
super(ast);
}
/*
* (non-Javadoc)
*
* @see
* uk.ac.ed.inf.biopepa.core.dom.ASTNode#accept(uk.ac.ed.inf.biopepa.core
* .dom.ASTvisitor) throws BioPEPAException
*/
@Override
public void accept(ASTVisitor visitor) throws BioPEPAException {
visitor.visit(this);
}
/* The system equation cannot have any declaration names */
public void fillInDeclarationName(Expression _declName) {
return;
}
}