Package groundTruthModule.datastructure.PersonEntity

Examples of groundTruthModule.datastructure.PersonEntity.EconomicStanding


        evidence.setResidentNode("hasEconomicStanding");
        argument = new ArgumentInfo();
        argument.setType("Person");
        argument.setName(personName);
        evidence.getArguments().add(argument);
        EconomicStanding stateValue = person.getHasEconomicStanding();
        evidence.setState(stateValue.toString());
        evidenceList.add(evidence);
      }
      if (person.getHasEducationLevel() != null) {
        evidence = new EvidenceInfo();
        evidence.setResidentNode("hasEducationLevel");
        argument = new ArgumentInfo();
        argument.setType("Person");
        argument.setName(personName);
        evidence.getArguments().add(argument);
        EducationLevel stateValue = person.getHasEducationLevel();
        evidence.setState(stateValue.toString());
        evidenceList.add(evidence);
      }
      if (person.getHasOccupation() != null) {
        evidence = new EvidenceInfo();
        evidence.setResidentNode("hasOccupation");
        argument = new ArgumentInfo();
        argument.setType("Person");
        argument.setName(personName);
        evidence.getArguments().add(argument);
        Occupation stateValue = person.getHasOccupation();
        evidence.setState(stateValue.toString());
        evidenceList.add(evidence);
      }
    }
  }
View Full Code Here


      if (person.getHasEconomicStanding() != null) {
        residentNode = mebn.getDomainResidentNode("hasEconomicStanding");
        arguments = new ObjectEntityInstance[1];
        arguments[0] = mebn.getObjectEntityContainer()
            .getEntityInstanceByName(personName);
        EconomicStanding stateValue = person.getHasEconomicStanding();
        if (stateValue == EconomicStanding.UpperClass) {
          categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("UpperClass");
        } else if (stateValue == EconomicStanding.MiddleClass) {
          categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("MiddleClass");
        } else {
View Full Code Here

TOP

Related Classes of groundTruthModule.datastructure.PersonEntity.EconomicStanding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.