if (person.getKnowsPersonImprisionedInOIForOEF() != null) {
residentNode = mebn.getDomainResidentNode("knowsPersonImprisionedInOIForOEF");
arguments = new ObjectEntityInstance[1];
arguments[0] = mebn.getObjectEntityContainer()
.getEntityInstanceByName(personName);
Quantity quantity = person.getKnowsPersonImprisionedInOIForOEF();
if (quantity == Quantity.None) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("None");
} else if (quantity == Quantity.Few) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Few");
} else {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Many");
}
mebnUtil
.createRandomVariableFinding(residentNode, arguments, categoricalState);
}
if (person.getKnowsPersonKilledinOIForOEF() != null) {
residentNode = mebn.getDomainResidentNode("knowsPersonKilledInOIForOEF");
arguments = new ObjectEntityInstance[1];
arguments[0] = mebn.getObjectEntityContainer()
.getEntityInstanceByName(personName);
Quantity quantity = person.getKnowsPersonKilledinOIForOEF();
if (quantity == Quantity.None) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("None");
} else if (quantity == Quantity.Few) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Few");
} else {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Many");
}
mebnUtil
.createRandomVariableFinding(residentNode, arguments, categoricalState);
}
if (person.getHasFamilyStatus() != null) {
residentNode = mebn.getDomainResidentNode("hasFamilyStatus");
arguments = new ObjectEntityInstance[1];
arguments[0] = mebn.getObjectEntityContainer()
.getEntityInstanceByName(personName);
FamilyStatus status = person.getHasFamilyStatus();
if (status == FamilyStatus.Single) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Single");
} else {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Married");
}
mebnUtil
.createRandomVariableFinding(residentNode, arguments, categoricalState);
}
// Evidence that support the hypothesis hasTerroristBeliefs(person)
if (person.getHasFriendshipWithTerrorist() != null) {
residentNode = mebn.getDomainResidentNode("hasFriendshipWithTerrorist");
arguments = new ObjectEntityInstance[1];
arguments[0] = mebn.getObjectEntityContainer()
.getEntityInstanceByName(personName);
Quantity quantity = person.getHasFriendshipWithTerrorist();
if (quantity == Quantity.None) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("None");
} else if (quantity == Quantity.Few) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Few");
} else {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Many");
}
mebnUtil
.createRandomVariableFinding(residentNode, arguments, categoricalState);
}
if (person.getHasKinshipToTerrorist() != null) {
residentNode = mebn.getDomainResidentNode("hasKinshipToTerrorist");
arguments = new ObjectEntityInstance[1];
arguments[0] = mebn.getObjectEntityContainer()
.getEntityInstanceByName(personName);
Quantity quantity = person.getHasKinshipToTerrorist();
if (quantity == Quantity.None) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("None");
} else if (quantity == Quantity.Few) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Few");
} else {