/** * Get the string representation. * @return The string representation. */ public String toString() { String name = (String)state.getAttributeValue(handle, OAVBDIMetaModel.modelelement_has_name); return "OAVCapabilityModel("+name+")"; }
public void run() { state.addAttributeValue(ragent, OAVBDIRuntimeModel.agent_has_inbox, message); // System.out.println("message moved to inbox: "+getAgentAdapter().getComponentIdentifier().getLocalName() // +"("+state.getAttributeValue(ragent, OAVBDIRuntimeModel.agent_has_state)+")"+", "+message); } });
/** * Set the handle. * @param handle The handle to set. */ protected void setHandle(Object handle) { assert this.handle==null; this.handle = handle; // Only called from synchronized code -> no agent invocation necessary if(handle!=null) state.addExternalObjectUsage(handle, this); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return (attr!=null ? "." + attr.getName() : "prefix")+(key==null? "": "["+key+"]"); }
/** * Create a string representation of this OAV object id. */ public String toString() { return type.getName()+"_"+id; }
/** * Create a new attribute type. * @param name The name. * @param type The type. * @param mult The multiplicity. * @param def The default value. */ public OAVAttributeType createAttributeType(String name, OAVObjectType type) { return createAttributeType(name, type, OAVAttributeType.NONE, null); }
/** * Create a type. * Creates a type that can be used to create objects. * @param name The type name. * @return The type. */ public OAVObjectType createType(String name) { return createType(name, null); }
/** * Test if two object are equal. * @param object The object to compare to. */ public boolean equals(Object object) { return object instanceof OAVInternalObjectId && this.id==((OAVInternalObjectId)object).id && this.type.equals(((OAVInternalObjectId)object).type); }
/** * The hash code. */ public int hashCode() { int result = 31 + (attr!=null ? attr.hashCode() : 0); result = result*31 + tupleindex; result = result*31 + subindex; return result; }
/** * Dispose the state. */ public void dispose() { state.removeStateListener(listener); }
/** * Get a type for a java class. */ public OAVJavaType getJavaType(Class clazz) { return (OAVJavaType)getObjectType(clazz); //return (OAVJavaType)getObjectType(SReflect.getClassName(clazz)); }
/** * Get the string representation. * @return The string representation. */ public String toString() { String name = (String)state.getAttributeValue(handle, OAVBDIMetaModel.modelelement_has_name); return "OAVAgentModel("+name+")"; } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "[java]"+"["+tupleindex+"]"+"."+(attr==null? "object": attr.getName()); } }
/** * The hash code. */ public int hashCode() { return 31 + (attr!=null ? attr.hashCode() : 0); }
/** * */ public static Class getClazz(IOAVState state, Object handle) { Object me = state.getAttributeValue(handle, OAVBDIRuntimeModel.element_has_model); return (Class)state.getAttributeValue(me, OAVBDIMetaModel.typedelement_has_class); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return ""+(attr==null? "object": attr.getName())+(key==null? "": "["+key+"]"); }
/** * The hash code. */ public int hashCode() { return 31 + (attr!=null ? attr.hashCode() : 0); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return (tupleindex!=-1? "["+tupleindex+"].": "")+ (attr==null? "object": attr.getName())+ (subindex==-1? "": ".["+subindex+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "["+tupleindex+"]"+"."+(attr==null? "object": attr.getName())+(key==null? "": "["+key+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "[java]"+(attr==null? "object": attr.getName()); } }