G
Guest
Given following code to instantiate object, how does one:
1) check a specific objects health - running, dead etc.
2) call a method in a specific object in the multiple object set
3) terminate a specific object
foreach ( DataRow ConfigRow in DSWTG.Tables["TurbineConfiguration"].Rows )
{
switch ( ConfigRow["Turbine Type"].ToString())
{
case "V47":
// instantiate a new turbine
VestasWTG V47 = new VestasWTG( TagNameRow, ConfigRow);
break;
default:
break;
}
}
1) check a specific objects health - running, dead etc.
2) call a method in a specific object in the multiple object set
3) terminate a specific object
foreach ( DataRow ConfigRow in DSWTG.Tables["TurbineConfiguration"].Rows )
{
switch ( ConfigRow["Turbine Type"].ToString())
{
case "V47":
// instantiate a new turbine
VestasWTG V47 = new VestasWTG( TagNameRow, ConfigRow);
break;
default:
break;
}
}