public CreateElectrodeBuilder(CreateConditionModel model)
 {
     this.model = model;
     head       = new ElectrodeHeadInfo(model);
     preveiw    = new ElectrodePreveiw(head);
     setValue   = ElectrodeSetValueFactory.Create(head, model.VecName);
 }
Exemplo n.º 2
0
        public static AbstractElectrodeSetValue Create(ElectrodeHeadInfo head, string dir)
        {
            AbstractElectrodeSetValue value = null;

            switch (dir.ToUpper())
            {
            case "Z+":
                value = new ZPositiveElectrodeSetValue(head);
                break;

            case "X+":
                value = new XPositiveElectrodeSetValue(head);
                break;

            case "X-":
                value = new XNegativeElectrodeSetValue(head);
                break;

            case "Y+":
                value = new YPositiveElectrodeSetValue(head);
                break;

            case "Y-":
                value = new YNegativeElectrodeSetValue(head);
                break;

            default:
                break;
            }
            return(value);
        }