Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
biocham
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Lifeware
biocham
Commits
ea097da5
Commit
ea097da5
authored
Mar 21, 2016
by
Thierry Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed syntax \\ -> /. But warning: priorities are wrong...
parent
62febb13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
influence_editor.pl
influence_editor.pl
+4
-4
influence_editor.plt
influence_editor.plt
+7
-7
influence_rules.pl
influence_rules.pl
+3
-4
No files found.
influence_editor.pl
View file @
ea097da5
...
...
@@ -216,18 +216,18 @@ inputs(PositiveInputEnum, PositiveInputList, []) :-
->
true
;
PositiveInputEnum
\
=
(
_
\
_
),
PositiveInputEnum
\
=
(
\
_
)
PositiveInputEnum
\
=
(
_
/
_
),
PositiveInputEnum
\
=
(
/
_
)
),
list_enumeration
(
PositiveInputList
,
PositiveInputEnum
),
!.
inputs
(
\
NegativeInputEnum
,
[],
NegativeInputList
)
:-
inputs
(
/
NegativeInputEnum
,
[],
NegativeInputList
)
:-
list_enumeration
(
NegativeInputList
,
NegativeInputEnum
),
!.
inputs
(
PositiveInputEnum
\
NegativeInputEnum
,
PositiveInputEnum
/
NegativeInputEnum
,
PositiveInputList
,
NegativeInputList
)
:-
...
...
influence_editor.plt
View file @
ea097da5
...
...
@@ -6,12 +6,12 @@
test(
'add_influence',
[Influences == [(
a, b \ c -> d), (b -< c), (\
a -< a)]]
[Influences == [(
(a, b) / c -> d), (b -< c), (/
a -< a)]]
) :-
clear_model,
command((
a, b \
c -> d)),
command((
(a, b) /
c -> d)),
command(b -< c),
command(
\
a -< a),
command(
/
a -< a),
all_items([kind: influence], Influences).
test(
...
...
@@ -40,7 +40,7 @@ test(
test(
'influence builds',
[Influence == (2 for
a, b \
c -> d)]
[Influence == (2 for
(a, b) /
c -> d)]
) :-
influence(Influence, 2, [a, b], [c], +, d).
...
...
@@ -52,7 +52,7 @@ test(
test(
'influence builds with negative inputs',
[Influence == (
\
a -< a)]
[Influence == (
/
a -< a)]
) :-
influence(Influence, 'MA'(1), [], [a], -, a).
...
...
@@ -71,7 +71,7 @@ test(
]
) :-
influence(
(2 for
a, b \
c -> d),
(2 for
(a, b) /
c -> d),
Force,
PositiveInputs,
NegativeInputs,
...
...
@@ -97,7 +97,7 @@ test(
result('MA'(1), [], [a], -, a)
]
) :-
influence((
\
a -< a), Force, PositiveInputs, NegativeInputs, Sign, Output).
influence((
/
a -< a), Force, PositiveInputs, NegativeInputs, Sign, Output).
test(
'compute_ode_for_influence_model',
...
...
influence_rules.pl
View file @
ea097da5
...
...
@@ -8,8 +8,7 @@
enumeration
/
1
,
op
(
1050
,
xfx
,
(
->
)),
op
(
1050
,
xfx
,
(
-<
)),
op
(
1025
,
xfx
,
(
\
)),
op
(
1025
,
fx
,
(
\
))
op
(
1025
,
fx
,
(
/
))
]
).
...
...
@@ -49,12 +48,12 @@ basic_influence(Inputs -< Output) :-
:-
grammar
(
inputs
).
inputs
(
PositiveInputs
\
NegativeInputs
)
:-
inputs
(
PositiveInputs
/
NegativeInputs
)
:-
enumeration
(
PositiveInputs
),
enumeration
(
NegativeInputs
).
inputs
(
\
NegativeInputs
)
:-
inputs
(
/
NegativeInputs
)
:-
enumeration
(
NegativeInputs
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment