示例#1
0
 protected ReactionInfo(String name)
 {
     _name      = name;
     _reactants = new List <SpeciesDescription>();
     _products  = new List <SpeciesDescription>();
     _rate      = null;
     _delay     = null;
 }
示例#2
0
            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));
 }
示例#4
0
 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));
 }
示例#8
0
 public void SetDelay(NumericExpressionTree expressionTree)
 {
     _reaction._delay = expressionTree;
 }
示例#9
0
 public void SetRate(NumericExpressionTree expressionTree)
 {
     _reaction._rate = expressionTree;
 }
示例#10
0
 public ObservableInfo(NumericExpressionTree observableExpression)
 {
     _name       = String.Empty;
     _expression = observableExpression;
 }
示例#11
0
 public ObservableInfo(String name, NumericExpressionTree observableExpression)
 {
     _name       = name;
     _expression = observableExpression;
 }