Resource.hpp
Implement resource-based selection.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2018 Michigan State University MIT Software license; see doc/LICENSE.md
- Todo:
Ultimately, we probably want a much more full-featured resource system. This one works for Eco-EA and could be the basis for something Avida-like but lacks a lot of features for Artificial Life systems.
Defines
-
INCLUDE_EMP_EVOLVE_RESOURCE_HPP_GUARD
Functions
-
class Resource
- #include <Resource.hpp>
Public Functions
-
inline Resource()
-
inline Resource(double amt, double in, double out)
-
inline double GetAmount() const
-
inline double GetInflow() const
-
inline double GetOutflow() const
-
inline void SetAmount(double amt)
-
inline void SetInflow(double in)
-
inline void SetOutflow(double out)
-
inline double Inc()
-
inline double Inc(double amt)
-
inline double Dec()
-
inline double Dec(double amt)
-
inline double Update()
-
inline Resource()