protected ReactionInfo(String name) { _name = name; _reactants = new List <SpeciesDescription>(); _products = new List <SpeciesDescription>(); _rate = null; _delay = null; }
public void AddExpression(NumericExpressionTree expression) { if (!_model._expressions.ContainsKey(expression)) { if ((expression.Name != null) && _model.Expressions.Any(net => net.Name == expression.Name)) { throw new ArgumentException("Expression '" + expression.Name + "' already exists in the model."); } _model._expressions.Add(expression, expression); } }
public void AddAction(TargetReference target, NumericExpressionTree expression) { _event.Statements.Add(new StatementInfo(target, expression)); }
public StatementInfo(TargetReference target, NumericExpressionTree expression) { Target = target; Expression = expression; }
public SpeciesDescription(String name, int initialPopulation, LocaleInfo locale) { _name = name; _locale = locale; _initialPopulation = new NumericExpressionTree(new Constant(initialPopulation)); }
public SpeciesDescription(String name, NumericExpressionTree initialPopulation, LocaleInfo locale) { _name = name; _locale = locale; _initialPopulation = initialPopulation; }
public SpeciesDescription(String name) { _name = name; _locale = null; _initialPopulation = new NumericExpressionTree(new Constant(0.0f)); }
public void SetDelay(NumericExpressionTree expressionTree) { _reaction._delay = expressionTree; }
public void SetRate(NumericExpressionTree expressionTree) { _reaction._rate = expressionTree; }
public ObservableInfo(NumericExpressionTree observableExpression) { _name = String.Empty; _expression = observableExpression; }
public ObservableInfo(String name, NumericExpressionTree observableExpression) { _name = name; _expression = observableExpression; }