getMediumList() public method

public getMediumList ( ) : LinkedList
return LinkedList
Ejemplo n.º 1
0
    private bool safeLazyInit()
    {
        if (null == _reactionEngine)
        {
            _reactionEngine = ReactionEngine.get();
        }

        if (_reactionEngine != null)
        {
            if (null == _mediums)
            {
                _mediums = _reactionEngine.getMediumList();
            }
            if (null == _mediums)
            {
                Logger.Log("VectrosityPanel::safeLazyInit failed to get mediums", Logger.Level.WARN);
                return(false);
            }
        }
        else
        {
            Logger.Log("VectrosityPanel::safeLazyInit failed to get ReactionEngine", Logger.Level.WARN);
            return(false);
        }

        return(true);
    }
Ejemplo n.º 2
0
 void Start()
 {
     _reactionEngine = ReactionEngine.get();
     _graphWindow    = gameObject.GetComponentInChildren <GraphWindow>();
     if (setMedium(ReactionEngine.getMediumFromId(_mediumId, _reactionEngine.getMediumList())) == false)
     {
         Logger.Log("Failed to load medium curves", Logger.Level.ERROR);
     }
 }
Ejemplo n.º 3
0
    /*!
     * \brief This method gets all molecular concentrations
     * \sa Molecule
     * \sa Molecule.getConcentration()
     */
    public void initMolecules()
    {
        LinkedList <Medium> mediums = _reactionEngine.getMediumList();

        _mediumRef = ReactionEngine.getMediumFromId(_mediumId, mediums);

        if (_mediumRef != null && _molecules == null)
        {
            _molecules = _mediumRef.getMolecules();
        }
    }
Ejemplo n.º 4
0
 void Start () {
   _reactionEngine = ReactionEngine.get ();
   _graphWindow = gameObject.GetComponentInChildren<GraphWindow>();
   if (setMedium(ReactionEngine.getMediumFromId(_mediumId, _reactionEngine.getMediumList())) == false)
     Logger.Log("Failed to load medium curves", Logger.Level.ERROR);
 }