/** * Create a string representation. */ public String toString() { synchronized(monitor) { return SUtil.arrayToString(elements); } } }
/** * Convert this tuple to a string representation. * @return A string representation of this tuple. */ public String toString() { return "Tuple"+SUtil.arrayToString(entities); }
/** * Create a string representation of this map. */ public String toString() { return "NestedMap(local="+local+", parents="+SUtil.arrayToString(parents)+")"; } }
/** * Get a string representation. */ public String toString() { return "NodePath("+entry+": "+SUtil.arrayToString(path)+")"; }
/** * Get a message parameter value as string. */ protected String getParameter(String name) { Object val = message.get(name); return val!=null ? SUtil.arrayToString(val): ""; // arrayToString also works for non arrays. }
/** * Get the string representation. * @return The string representation. */ public String toString() { return toString(", evaluators="+SUtil.arrayToString(evaluators)); }
/** * Get a message parameter value as string. */ protected String getParameter(String name) { Object val = message.get(name); return val!=null ? SUtil.arrayToString(val): ""; // arrayToString also works for non arrays. }
/** * Get the string representation. * @return The string representation. */ public String toString() { return toString(", evaluators="+SUtil.arrayToString(evaluators)); }
/** * Get a string representation. */ public String toString() { return SReflect.getInnerClassName(getClass())+"("+rid+", "+SUtil.arrayToString(delegates)+")"; } }
/** * Invoke a function and return a value (optional). * @param paramvalues The parameter values. * @return The function value. */ public Object invoke(Object[] paramvalues, IOAVState state) { if(paramvalues==null || paramvalues.length!=1) throw new IllegalArgumentException("Function needs one parameter: "+SUtil.arrayToString(paramvalues)); Object val1 = paramvalues[0] instanceof ILazyValue? ((ILazyValue)paramvalues[0]).getValue(): paramvalues[0]; return val1; }
/** * Get the string representation. */ public String toString() { expungeStaleEntries(); return SUtil.arrayToString(array); // Use toArray(). }
/** * Invoke a function and return a value (optional). * @param paramvalues The parameter values. * @param state The state. * @return The function value. */ public Object invoke(Object[] paramvalues, IOAVState state) { if(paramvalues==null || paramvalues.length!=2) throw new IllegalArgumentException("Operator function needs two parameters: "+SUtil.arrayToString(paramvalues)); return Boolean.valueOf(operator.evaluate(state, paramvalues[0], paramvalues[1])); }
/** * Invoke a function and return a value (optional). * @param paramvalues The parameter values. * @param state The state. * @return The function value. */ public Object invoke(Object[] paramvalues, IOAVState state) { if(paramvalues==null || paramvalues.length!=2) throw new IllegalArgumentException("Operator function needs two parameters: "+SUtil.arrayToString(paramvalues)); return Boolean.valueOf(operator.evaluate(state, paramvalues[0], paramvalues[1])); }
/** * Invoke a function and return a value (optional). * @param paramvalues The parameter values. * @return The function value. */ public Object invoke(Object[] paramvalues, IOAVState state) { if(paramvalues==null || paramvalues.length!=1) throw new IllegalArgumentException("Function needs one parameter: "+SUtil.arrayToString(paramvalues)); Object val1 = paramvalues[0] instanceof ILazyValue? ((ILazyValue)paramvalues[0]).getValue(): paramvalues[0]; return val1; }
public void aborted() { System.out.println("Aborted: "+this+" "+SUtil.arrayToString(getParameterSet("achieve_goals").getValues()) +SUtil.arrayToString(getParameterSet("maintain_goals").getValues())); } }
public void passed() { System.out.println("Passed: "+this+" "+SUtil.arrayToString(getParameterSet("achieve_goals").getValues()) +SUtil.arrayToString(getParameterSet("maintain_goals").getValues())); } public void failed()
public void failed() { System.out.println("Failed: "+this+" "+SUtil.arrayToString(getParameterSet("achieve_goals").getValues()) +SUtil.arrayToString(getParameterSet("maintain_goals").getValues())+", "+getException()); } public void aborted()
/** * Method, that is being called, when the request has finished. * Default implementation sets status and result on goal. * @param success The final status of the df search. * @param result The result object. */ protected void requestFinished(boolean success, Object result) { getLogger().info("Request finished with: "+success+" "+ SUtil.arrayToString(result)+" "+this+" "+getComponentName()); getParameter("result").setValue(result); if(!success) fail(); }
/** * Method, that is being called, when the request has finished. * Default implementation sets status and result on goal. * @param success The final status of the df search. * @param result The result object. */ protected void requestFinished(boolean success, Object result) { getLogger().info(getShortProtocolName()+" finished with: "+success+" "+ SUtil.arrayToString(result)+" "+this+" "+getComponentName()); getParameter("result").setValue(result); if(!success) fail(); }
/** * Get the encodable representation. */ public Map getEncodableRepresentation() { IndexMap representation = SCollection.createIndexMap();; representation.add("isencodeablepresentation", "true"); // to distinguish this map from normal maps. representation.add("class", "ComposedFilter"); representation.add("operator", operatorToString(operator)); representation.add("filters", SUtil.arrayToString(filters)); return representation.getAsMap(); } }