public void init(string thisName, sinter_IOMode iomode, sinter_IOType thisType, string desc, string[] addStrings, int nn) { base.init(thisName, iomode, thisType, desc, addStrings); makeVector(nn); determineIsSetting(); }
//---------------------------------- //Constuctor //---------------------------------- public sinter_Variable() : base() { // the constructor method // set some typlical defaults o_error = sinter_IOError.si_OKAY; o_mode = sinter_IOMode.si_IN; o_type = sinter_IOType.si_DOUBLE; o_units = null; o_defaultUnits = null; }
public virtual void init(string thisName, sinter_IOMode iomode, sinter_IOType thisType, string desc, string[] addStrings) { o_name = thisName; o_mode = iomode; o_type = thisType; o_description = desc; o_addressStrings = addStrings; o_table = null; o_tableName = null; o_tableCol = 0; o_tableRow = 0; makeValue(); determineIsSetting(); }
/** * This version of init attempts to discover as much as possible about the variable automatically. * This is useful for the GUI, when the user selects a variable off the tree we need to try to figure out all about it. **/ public virtual void init(sinter_Sim sim, sinter.sinter_Variable.sinter_IOType type, string[] addStrings) { o_addressStrings = addStrings; IList <string> splitPath = sim.parsePath(o_addressStrings[0]); o_name = getVariableName(sim, addStrings[0]); o_mode = sinter_IOMode.si_IN; //Default to input o_type = type; o_description = null; o_table = null; o_tableName = null; o_tableCol = 0; o_tableRow = 0; makeValue(); recvFromSim(sim); setDefaultToValue(); }
public virtual void init(string thisName, sinter_IOMode iomode, sinter_IOType thisType, string desc, int TimeSeriesLen, string[] addStrings) { o_TimeSeriesLength = TimeSeriesLen; base.init(thisName, iomode, thisType, desc, addStrings); }
public override void init(string thisName, sinter_IOMode iomode, sinter_IOType thisType, string desc, string[] addStrings) { init(thisName, iomode, thisType, desc, addStrings, 1); //Init a unit length vector (0 is bad) Will be increased later }