Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MSc Computing Individual Project
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
Service Desk
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
yb422
MSc Computing Individual Project
Commits
e5c997ba
Commit
e5c997ba
authored
1 year ago
by
yb422
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
a7b63e42
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
traffic_light.pl
+31
-0
31 additions, 0 deletions
traffic_light.pl
with
31 additions
and
0 deletions
traffic_light.pl
0 → 100644
+
31
−
0
View file @
e5c997ba
maxTime
(
10
)
.
actions
switch_to_yellow
/1, switch/
1
.
events
call
/
1
.
fluents
colour
/
2
.
observe
call
(
light1
)
from
2
.
observe
call
(
light1
)
from
5
.
observe
call
(
light1
)
from
9
.
switch
(
Light
)
updates
yellow1
to
red
in
colour
(
Light
,
yellow1
)
.
switch
(
Light
)
updates
yellow2
to
green
in
colour
(
Light
,
yellow2
)
.
switch_to_yellow
(
Light
)
updates
green
to
yellow1
in
colour
(
Light
,
green
)
.
switch_to_yellow
(
Light
)
updates
red
to
yellow2
in
colour
(
Light
,
red
)
.
initially
colour
(
light1
,
red
)
.
if
call
(
Light
)
to
T
,
colour
(
Light
,
Colour
)
at
T
then
switch_to_yellow
(
Light
)
from
T
.
if
colour
(
Light
,
yellow1
)
at
T
then
switch
(
Light
)
from
T
.
if
colour
(
Light
,
yellow2
)
at
T
then
switch
(
Light
)
from
T
.
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