Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
mael
batmen
Commits
3e476849
Commit
3e476849
authored
2 years ago
by
jgatt
Browse files
Options
Downloads
Patches
Plain Diff
Better comment user_windows file
parent
78c9bad6
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!12
Merge Request multibehavior
Pipeline
#5475
passed with warnings
2 years ago
Stage: build-and-test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/users/user_windows.cpp
+1
-1
1 addition, 1 deletion
src/users/user_windows.cpp
src/users/user_windows.hpp
+7
-6
7 additions, 6 deletions
src/users/user_windows.hpp
with
8 additions
and
7 deletions
src/users/user_windows.cpp
+
1
−
1
View file @
3e476849
...
...
@@ -10,7 +10,7 @@ DMWindow_list::DMWindow_list(std::vector<DMWindow> window_array){
bool
DMWindow_list
::
date_in_dm_window
(
double
date
){
/
/
Return if the date
belong
in one of the dm_window of the list
/
*
Return
s true
if the date
is
in one of the dm_window of the
DMWindow_
list
*/
std
::
vector
<
DMWindow_list
>::
size_type
index
=
index_in_dm_window
(
date
);
return
index
!=
content
.
size
();
}
...
...
This diff is collapsed.
Click to expand it.
src/users/user_windows.hpp
+
7
−
6
View file @
3e476849
...
...
@@ -23,12 +23,13 @@ struct DMWindow_list
/**
* @brief User class that combines all the demand_response class given in user_replay
* @details this User act as Replay_user_rigid when it is in no window contained
* in the fields 'red_windows', 'yellow_windows', 'dm_window'
* When in these windows it change behavior as detailed in red_window_behavior
* for 'red_windows' and 'dm_windows' that uses randomness.
* And for 'yellow_windows', it is detailed in yellow_window_behavior.
* @brief User class that adopts a different set of submission behaviors depending
* on the energy state (red, yellow, green)
* @details Below are the behaviors drawn at random when the date is in a particular window
* - red window: behaviors degrad, c_you_later, renounce, reconfig and rigid
* - yellow window: behaviors degrad, reconfig and rigid
* - otherwise ("green window"): rigid
* See the documentation of red_window_behavior and yellow_window_behavior.
*/
class
DMUserMultiBehavior
:
public
DMUserRenonce
,
public
DMUserReconfig
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment