Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetroSim
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
Container 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
Julien Pillis
MetroSim
Commits
9b597a6b
Commit
9b597a6b
authored
1 year ago
by
Yousra Hassan
Browse files
Options
Downloads
Patches
Plain Diff
canal change
parent
1f737793
No related branches found
Branches containing commit
No related tags found
1 merge request
!14
Merge v2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/simulation/agent.go
+1
-0
1 addition, 0 deletions
internal/simulation/agent.go
with
1 addition
and
0 deletions
internal/simulation/agent.go
+
1
−
0
View file @
9b597a6b
...
...
@@ -277,6 +277,7 @@ func (ag *Agent) MoveAgent() {
reqToBlockingAgent
=
NewRequest
(
blockingAgentID
,
3
)
ag
.
env
.
agentsChan
[
blockingAgentID
]
<-
*
reqToBlockingAgent
//Faire le moment ou blocking agent recoit qqchose sur son canal
//BlockingAgent cherche si autour de lui c'est vide
possible
,
or
:=
IsMovementSafe
(
blockingAgent
.
path
,
blockingAgent
,
blockingAgent
.
env
)
if
!
possible
{
...
...
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