Resource.hpp
Implement resource-based selection.
- 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.
Functions
-
class Resource
- #include <Resource.hpp>
Public Functions
-
inline Resource()
-
inline Resource(double amt, double in, double out)
-
inline double GetAmount()
-
inline double GetInflow()
-
inline double GetOutflow()
-
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()