/// /// <summary> * setRefTarget() set the target referencened in @rRef /// * </summary> /// * <returns> JDFElement() the referenced element, either state or a devcap </returns> /// public virtual void setRefTarget(JDFElement e) { JDFDeviceCap deviceCap = (JDFDeviceCap)getDeepParent(ElementName.DEVICECAP, 0); if (deviceCap == null) { throw new JDFException("setRefTarget, called in dangling evaluation"); } if (!(e is JDFAbstractState) && !(e is JDFDevCap)) { throw new JDFException("setRefTarget, called for illegal target type"); } string id = e.appendAnchor(null); setrRef(id); }