Remove roleB - only roleA is labelled

This commit is contained in:
Adrian Hall
2020-03-17 10:16:19 +00:00
parent 4f50e36e5b
commit a3b97f7c24
4 changed files with 38 additions and 34 deletions

View File

@@ -35,12 +35,18 @@ const addEntity = function(name) {
const getEntities = () => entities;
const addRelationship = function(entA, rolA, entB, rolB, card) {
/**
* Add a relationship
* @param entA The first entity in the relationship
* @param rolA The role played by the first entity in relation to the second
* @param entB The second entity in the relationship
* @param card The cardinality of the relationship between the two entities
*/
const addRelationship = function(entA, rolA, entB, card) {
let rel = {
entityA: entA,
roleA: rolA,
entityB: entB,
roleB: rolB,
cardinality: card
};