* @throws OmniUnknownMessageTypeException
*/
private UnitProperties readUnitProperties(int number)
throws IOException, OmniNotConnectedException,
OmniInvalidResponseException, OmniUnknownMessageTypeException {
Message m = c.reqObjectProperties(Message.OBJ_TYPE_UNIT, number, 0,
ObjectProperties.FILTER_1_NAMED,
ObjectProperties.FILTER_2_AREA_ALL,
ObjectProperties.FILTER_3_ANY_LOAD);
if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
return ((UnitProperties) m);
}
return null;
}