Skip to content
Snippets Groups Projects
Commit e43aad57 authored by John Schihada's avatar John Schihada
Browse files

Distances/Angles can be published now too: Adjusted corresponding json bodies

parent d61da8f8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment