|
|
@ -5,6 +5,7 @@ import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import org.openmuc.openiec61850.BasicDataAttribute;
|
|
|
|
import org.openmuc.openiec61850.BasicDataAttribute;
|
|
|
|
|
|
|
|
import org.openmuc.openiec61850.BdaBoolean;
|
|
|
|
import org.openmuc.openiec61850.BdaFloat32;
|
|
|
|
import org.openmuc.openiec61850.BdaFloat32;
|
|
|
|
import org.openmuc.openiec61850.BdaFloat64;
|
|
|
|
import org.openmuc.openiec61850.BdaFloat64;
|
|
|
|
import org.openmuc.openiec61850.BdaInt16;
|
|
|
|
import org.openmuc.openiec61850.BdaInt16;
|
|
|
@ -182,6 +183,10 @@ public class ConsoleServer {
|
|
|
|
long value = Long.parseLong(valueString);
|
|
|
|
long value = Long.parseLong(valueString);
|
|
|
|
((BdaInt64) bda).setValue(value);
|
|
|
|
((BdaInt64) bda).setValue(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (bda instanceof BdaBoolean) {
|
|
|
|
|
|
|
|
boolean value = Boolean.parseBoolean(valueString);
|
|
|
|
|
|
|
|
((BdaBoolean) bda).setValue(value);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
throw new IllegalArgumentException();
|
|
|
|
throw new IllegalArgumentException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|