34 lines
864 B
C++
34 lines
864 B
C++
/*
|
|
* PrechargeChecker.h
|
|
*
|
|
* Created on: Mar 13, 2014
|
|
* Author: jonny
|
|
*/
|
|
|
|
#ifndef PRECHARGECHECKER_H_
|
|
#define PRECHARGECHECKER_H_
|
|
|
|
#include <core/scheduling/checker/ICommandChecker.h>
|
|
#include "core/Configuration.h"
|
|
#include "core/scheduling/CommandBus.h"
|
|
|
|
namespace controller {
|
|
|
|
class PrechargeChecker: public controller::ICommandChecker
|
|
{
|
|
public:
|
|
PrechargeChecker(const Configuration& config, const CommandBus& commandBus) : config(config), bus(commandBus) {}
|
|
virtual ~PrechargeChecker() {}
|
|
|
|
virtual void check(ScheduledCommand& command) const;
|
|
virtual sc_time getExecutionTime(const tlm::tlm_generic_payload& transaction, Command command) const;
|
|
virtual void cb_IInternalScheduler(const ScheduledCommand& command);
|
|
private:
|
|
const Configuration& config;
|
|
const CommandBus& bus;
|
|
};
|
|
|
|
} /* namespace controller */
|
|
|
|
#endif /* PRECHARGECHECKER_H_ */
|