Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F27036758
Decimation.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
Decimation.cpp
View Options
//===-- deluxe/executionpolicies/Decimation.cpp -----------------*- C++ -*-===//
//
// The RoSA Framework
//
//===----------------------------------------------------------------------===//
///
/// \file deluxe/executionpolicies/Decimation.cpp
///
/// \author David Juhasz (david.juhasz@tuwien.ac.at)
///
/// \date 2019
///
/// \brief Implementation for deluxe/executionpolicies/Decimation.h.
///
//===----------------------------------------------------------------------===//
#include
"Decimation.h"
#include
<algorithm>
namespace
rosa
{
namespace
deluxe
{
Decimation
::
Decimation
(
const
size_t
D
)
:
Rate
(
std
::
max
<
size_t
>
(
D
,
1
)),
Cycle
(
0
)
{}
bool
Decimation
::
canHandle
(
const
AgentHandle
,
const
DeluxeSystem
&
)
const
noexcept
{
return
true
;
}
bool
Decimation
::
doExecute
(
const
std
::
vector
<
bool
>
&
)
noexcept
{
return
(
Cycle
++
%
Rate
)
==
0
;
}
std
::
string
Decimation
::
dump
(
void
)
const
noexcept
{
return
"Decimation with rate "
+
std
::
to_string
(
Rate
);
}
}
// End namespace deluxe
}
// End namespace rosa
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Oct 27, 8:10 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
411452
Default Alt Text
Decimation.cpp (1 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline