/** * Clone a component description. */ public Object clone() { try { CMSComponentDescription ret = (CMSComponentDescription)super.clone(); if(name!=null) ret.setName((ComponentIdentifier)((ComponentIdentifier)name).clone()); if(children!=null) { ret.children = new LinkedHashSet(); ret.children.addAll(children); } ret.cause = cause!=null ? new Cause(cause) : cause; return ret; } catch(CloneNotSupportedException e) { throw new RuntimeException("Cannot clone: " + this); } }
public void customResultAvailable(IComponentIdentifier newcid) { CMSComponentDescription newdesc = (CMSComponentDescription)((CMSComponentDescription)origdesc).clone(); newdesc.setName(newcid); ret.setResult(newdesc); } }));
public void customResultAvailable(IComponentIdentifier newcid) { CMSComponentDescription newdesc = (CMSComponentDescription)((CMSComponentDescription)origdesc).clone(); newdesc.setName(newcid); ret.setResult(newdesc); } }));
public void customResultAvailable(IComponentIdentifier newcid) { CMSComponentDescription newdesc = (CMSComponentDescription)((CMSComponentDescription)origdesc).clone(); newdesc.setName(newcid); ret.setResult(newdesc); } });
/** * Clone a component description. */ public Object clone() { try { CMSComponentDescription ret = (CMSComponentDescription)super.clone(); if(name!=null) ret.setName((BasicComponentIdentifier)((BasicComponentIdentifier)name).clone()); // Do not clone -> only used internally // if(children!=null) // { // ret.children = new LinkedHashSet(); // ret.children.addAll(children); // } ret.cause = cause!=null ? new Cause(cause) : cause; return ret; } catch(CloneNotSupportedException e) { throw new RuntimeException("Cannot clone: " + this); } }
desc.setName(rcid); desc = (CMSComponentDescription)((CMSComponentDescription)desc).clone();
desc.setName(rcid); desc = (CMSComponentDescription)((CMSComponentDescription)desc).clone();
desc.setName(rcid); desc = (CMSComponentDescription)((CMSComponentDescription)desc).clone();
/** * Create a new CESComponentDescription. */ public CMSComponentDescription(IComponentIdentifier cid, String type, Boolean master, Boolean daemon, Boolean autoshutdown, PublishEventLevel monitoring, Boolean synchronous, String modelname, String localtype, IResourceIdentifier rid, long creationtime, IComponentIdentifier creator, Cause cause) { // if(cid.getName().indexOf("Dyn")!=-1) // System.out.println("created desc: "+cid+" "+hashCode()); setName(cid); setType(type); // setParent(parent); setState(IComponentDescription.STATE_ACTIVE); // setProcessingState(IComponentDescription.PROCESSINGSTATE_IDLE); setMaster(master); setDaemon(daemon); setAutoShutdown(autoshutdown); setMonitoring(monitoring!=null? monitoring: PublishEventLevel.OFF); setSynchronous(synchronous); setModelName(modelname); setLocalType(localtype); setResourceIdentifier(rid); setCreationTime(creationtime); setCreator(creator); setCause(cause); }
/** * Create a new CMSComponentDescription. */ public CMSComponentDescription(IComponentIdentifier cid, String type, boolean master, boolean daemon, boolean autoshutdown, boolean synchronous, boolean persistable, PublishEventLevel monitoring, String modelname, String localtype, IResourceIdentifier rid, long creationtime, IComponentIdentifier creator, Cause cause, boolean systemcomponent) { // if(cid.getName().indexOf("Dyn")!=-1) // System.out.println("created desc: "+cid+" "+hashCode()); setName(cid); setType(type); // setParent(parent); setState(IComponentDescription.STATE_ACTIVE); // setProcessingState(IComponentDescription.PROCESSINGSTATE_IDLE); setMaster(master); setDaemon(daemon); setAutoShutdown(autoshutdown); setSynchronous(synchronous); setPersistable(persistable); setMonitoring(monitoring!=null? monitoring: PublishEventLevel.OFF); setModelName(modelname); setLocalType(localtype); setResourceIdentifier(rid); setCreationTime(creationtime); setCreator(creator); setCause(cause); setSystemComponent(systemcomponent); }