sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/runtimeConstraints/RuntimeConstraintManager.java
public JSONArray toJson() throws Exception {
		JSONArray retval = new JSONArray();
		
		// loop through all runtime-constrainable
		for(RuntimeConstraintMetaData rco : this.rtcObjectHash.values()){
			
			if (rco.constraintIsApplied()) {
				// create a new JSONObject
				JSONObject constraintJson = buildRuntimeConstraintJson(rco.getObjectName(),rco.getOperation(),rco.getOperands());
						
				retval.add(constraintJson);
			}
		}

		if (retval.size() == 0) {
			return null;
		} else {
			return retval;
		}
	}
/**
	 * Create json of all runtime-constraints in the nodegroup.
	 * NOTE if you've already applied constraints to a nodegroup you probably don't need this json
	 * @return Null if none
	 */
Create json of all runtime-constraints in the nodegroup.
NOTE if you've already applied constraints to a nodegroup you probably don't need this json
@return Null if none
Create json of all runtime - constraints in the nodegroup . NOTE if you ' ve already applied constraints to a nodegroup you probably don ' t need this json @return Null if none
public JSONArray toJson() throws Exception {
		JSONArray retval = new JSONArray();
		for(RuntimeConstraintMetaData rco : this.rtcObjectHash.values()){
			if (rco.constraintIsApplied()) {
				JSONObject constraintJson = buildRuntimeConstraintJson(rco.getObjectName(),rco.getOperation(),rco.getOperands());
				retval.add(constraintJson);
			}
		}
		if (retval.size() == 0) {
			return null;
		} else {
			return retval;
		}
	}
public JSONArray toJson ( ) throws Exception { JSONArray retval = new JSONArray ( ) ; for ( RuntimeConstraintMetaData rco : this . rtcObjectHash . values ( ) ) { if ( rco . constraintIsApplied ( ) ) { JSONObject constraintJson = buildRuntimeConstraintJson ( rco . getObjectName ( ) , rco . getOperation ( ) , rco . getOperands ( ) ) ; retval . add ( constraintJson ) ; } } if ( retval . size ( ) == 0 ) { return null ; } else { return retval ; } }
Create json of all runtime-constraints in the nodegroup.
Create json of all runtime - constraints in the nodegroup .
// loop through all runtime-constrainable // create a new JSONObject