// pixelsx,y -> ScreenSize
int pixelsX = getPolicyValueAsInt(device, "pixelsx", 0);
int pixelsY = getPolicyValueAsInt(device, "pixelsy", 0);
if (pixelsX > 0 && pixelsY > 0) {
Dimension screenSize = new Dimension(pixelsX, pixelsY);
Property screenSizeProperty = new Property("ScreenSize",
screenSize);
hardwarePlatformComponent.addProperty(screenSizeProperty);
}
// charactersx,y -> ScreenSizeChar
Dimension screenSizeChar;
int charactersX = getPolicyValueAsInt(device, "charactersx", 0);
int charactersY = getPolicyValueAsInt(device, "charactersy", 0);
if (charactersX > 0 && charactersY > 0) {
screenSizeChar = new Dimension(charactersX, charactersY);
Property screenSizeCharProperty = new Property("ScreenSizeChar",
screenSizeChar);
hardwarePlatformComponent.addProperty(screenSizeCharProperty);
}