Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UFrameIT
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FrameIT
UFrameIT
Commits
e43aad57
Commit
e43aad57
authored
4 years ago
by
John Schihada
Browse files
Options
Downloads
Patches
Plain Diff
Distances/Angles can be published now too: Adjusted corresponding json bodies
parent
d61da8f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/Scripts/InteractionEngine/Fact.cs
+4
-4
4 additions, 4 deletions
Assets/Scripts/InteractionEngine/Fact.cs
Assets/Scripts/JSONManager.cs
+5
-3
5 additions, 3 deletions
Assets/Scripts/JSONManager.cs
with
9 additions
and
7 deletions
Assets/Scripts/InteractionEngine/Fact.cs
+
4
−
4
View file @
e43aad57
...
...
@@ -142,10 +142,10 @@ public LineFact(int i, int pid1, int pid2)
}
);
MMTTerm
rhs
=
new
OMF
(
v
);
MMTTerm
valueTp
=
new
OMF
(
v
);
//see point label
MMTValueDeclaration
mmtDecl
=
new
MMTValueDeclaration
(
this
.
Label
,
lhs
,
rhs
);
MMTValueDeclaration
mmtDecl
=
new
MMTValueDeclaration
(
this
.
Label
,
lhs
,
valueTp
,
null
);
string
body
=
MMTDeclaration
.
ToJson
(
mmtDecl
);
AddFactResponse
res
=
AddFactResponse
.
sendAdd
(
CommunicationEvents
.
ServerAdress
+
"/fact/add"
,
body
);
this
.
backendURI
=
res
.
uri
;
...
...
@@ -257,10 +257,10 @@ public AngleFact(int i, int pid1, int pid2, int pid3)
}
);
MMTTerm
rhs
=
new
OMF
(
v
);
MMTTerm
valueTp
=
new
OMF
(
v
);
//see point label
MMTValueDeclaration
mmtDecl
=
new
MMTValueDeclaration
(
this
.
Label
,
lhs
,
rhs
);
MMTValueDeclaration
mmtDecl
=
new
MMTValueDeclaration
(
this
.
Label
,
lhs
,
valueTp
,
null
);
string
body
=
MMTDeclaration
.
ToJson
(
mmtDecl
);
Debug
.
Log
(
body
);
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/JSONManager.cs
+
5
−
3
View file @
e43aad57
...
...
@@ -118,13 +118,15 @@ public class MMTValueDeclaration : MMTDeclaration
public
string
kind
=
"veq"
;
public
string
label
;
public
MMTTerm
lhs
;
public
MMTTerm
rhs
;
public
MMTTerm
valueTp
;
public
MMTTerm
value
;
public
MMTValueDeclaration
(
string
label
,
MMTTerm
lhs
,
MMTTerm
rhs
)
public
MMTValueDeclaration
(
string
label
,
MMTTerm
lhs
,
MMTTerm
valueTp
,
MMTTerm
value
)
{
this
.
label
=
label
;
this
.
lhs
=
lhs
;
this
.
rhs
=
rhs
;
this
.
valueTp
=
valueTp
;
this
.
value
=
value
;
}
}
...
...
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