Mercurial > hg > Members > nobuyasu > Consensus
changeset 49:36ddbd5e5d45
modified computeAndUpdateStatus
author | one |
---|---|
date | Thu, 04 Oct 2012 14:00:08 +0900 |
parents | bc35c27966f5 |
children | d6c623e92837 |
files | app/models/ClaimModel.java |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/app/models/ClaimModel.java Thu Oct 04 13:54:48 2012 +0900 +++ b/app/models/ClaimModel.java Thu Oct 04 14:00:08 2012 +0900 @@ -280,7 +280,9 @@ setProperty(STATUS, PASS); } else if (requestsNumber == deniedNumber) { setProperty(STATUS, FAILED); - } + } else { + setProperty(STATUS, UNKNOWN); + } } else if (inverseRefutationStatus != null && queAndSugStatus == null) { setProperty(STATUS, inverseRefutationStatus); } else if (inverseRefutationStatus == null && queAndSugStatus != null) { @@ -307,8 +309,6 @@ /* Check child claim */ String inverseRefutationStatus = checkRefutationClaims(); String queAndSugStatus = checkQuestionAndSuggestionClaims(); - System.out.println("inverseRefutationStatus = "+inverseRefutationStatus); - System.out.println("queAndSugStatus = "+queAndSugStatus); /* Check user request status */ Object[] requestEdges = getRequestEdges(); String type = getProperty(TYPE).toString(); @@ -317,7 +317,6 @@ long deniedNumber = getDeninedNumber(requestEdges); Boolean notChanged = false; if (type.equals(UNANIMOUSLY)) { - System.out.println("UNAMIMOUSLY'"); notChanged = checkUnanimously(inverseRefutationStatus, queAndSugStatus, requestsNumber, agreedNumber, deniedNumber); } else if (type.equals(MAJORITY)) { @@ -355,7 +354,6 @@ private String checkRefutationClaims() { Iterable<Vertex> iter = getVertexIterable(Direction.OUT, L_REFUTATION); if (iter == null) { - System.out.println("Refutation iterable is null"); return null; } String status = null;