ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
Rates.hpp
1/******************************************************************************
2* Copyright (c) ATTX LLC 2024. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, LLC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, LLC.
15******************************************************************************/
16
17#ifndef RATES_HPP
18#define RATES_HPP
19
20#include <array>
21
22#include "core/clockwerkerrors.h"
23
24namespace clockwerk {
25
26 template <typename T, unsigned int N>
27 class Rates {
28 public:
29 /// @brief Function to calculate rates from current state of system
30 /// @param time The reference time
31 /// @param state The reference state
32 /// @param out_rates Implicit return of rates based on time, state
33 virtual int calculateRates(T time, const std::array<T, N> &state,
34 std::array<T, N> &out_rates) {return NO_ERROR;}
35 private:
36
37 };
38
39}
40
41#endif
Definition Rates.hpp:27
virtual int calculateRates(T time, const std::array< T, N > &state, std::array< T, N > &out_rates)
Function to calculate rates from current state of system.
Definition Rates.hpp:33
#define NO_ERROR
Definition clockwerkerrors.h:31