public virtual void AddReverseDependency(ApplianceObject o) { if (!_reverseDeps.Contains(o)) { _reverseDeps.Add(o); } }
public void RegisterConstraints(ApplianceObject obj) { IEnumerator label = _labels.GetEnumerator(); while (label.MoveNext()) { if (label.Current is StringConstraint) { new LabelConstraintListener(obj, (StringConstraint)label.Current); } } }
public void RegisterObject(string fullName, ApplianceObject ao) { _objsByName[fullName] = ao; registerUniqueNames(fullName); if (ao.State) { registerVariable(fullName, (ApplianceState)ao); } ao.FullName = fullName; }
/// <summary> /// This method helps in the cloning process by allowing each /// class in the hierarchy to clone their own member variables. /// The class being cloned will create a new instance of itself, /// and then call the cloneHelper in its super-class to get any /// member variables of its super classes to be copied. /// </summary> /// <param name="clone">the instance of the cloned object</param> protected void cloneHelper(ApplianceObject clone) { // copy the following values directly clone._name = _name; clone._priority = _priority; clone._enabled = _enabled; clone._highlevelType = _highlevelType; clone._lineNumber = _lineNumber; clone._appliance = _appliance; clone._fullName = _fullName; // TODO: do these need to be deep copied? clone._labels = _labels; clone._dependencies = _dependencies; }
/* * Constructor */ public ObjectGroupNode(ApplianceObject obj) { _object = obj; }