edu.washington.cs.supple.wlib.java2
Class DesktopDeviceProperties
java.lang.Object
edu.washington.cs.supple.render.DeviceProperties
edu.washington.cs.supple.wlib.java2.DesktopDeviceProperties
- Direct Known Subclasses:
- DesktopAlignedDeviceProperties, OriginalDeviceProperties, ShortcutExperimentDeviceProperties, TestDeviceProperties, TouchDeviceProperties
- public class DesktopDeviceProperties
- extends DeviceProperties
- Author:
- kgajos
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recentCostFunction
protected DesktopCostFunction recentCostFunction
DesktopDeviceProperties
public DesktopDeviceProperties()
getName
public java.lang.String getName()
- Specified by:
getName in class DeviceProperties
- Returns:
- the name of the device
getCostFunction
public CostFunction getCostFunction(Trace trace)
- Specified by:
getCostFunction in class DeviceProperties
- Returns:
getVetoFunction
public VetoFunction getVetoFunction(Trace trace)
- Description copied from class:
DeviceProperties
- Returns a veto function for this device. The Veto function can mark some
widgets as unacceptable before they are run through the cost function.
- Specified by:
getVetoFunction in class DeviceProperties
getWidgetFactory
public WidgetFactory getWidgetFactory()
- Specified by:
getWidgetFactory in class DeviceProperties
- Returns:
- the device's widget factory.
getConstraintFactory
public ConstraintFactory getConstraintFactory()
- Overrides:
getConstraintFactory in class DeviceProperties
getRenderer
public Renderer getRenderer()
- Description copied from class:
DeviceProperties
- Get a renderer for this device.
- Specified by:
getRenderer in class DeviceProperties
- Returns:
getAvailableScreenSize
public java.awt.Dimension getAvailableScreenSize()
- Description copied from class:
DeviceProperties
- Get the available screen size from the environment.
- Specified by:
getAvailableScreenSize in class DeviceProperties
- Returns:
getFactoredCostCalculator
public FactoredCostCalculator getFactoredCostCalculator()
- Overrides:
getFactoredCostCalculator in class DeviceProperties
getFactoredCostFunction
public FactoredCostFunction getFactoredCostFunction(Trace trace)
- Description copied from class:
DeviceProperties
- Returns a factored cost function for this device
- Overrides:
getFactoredCostFunction in class DeviceProperties
- Parameters:
trace - current trace
- Returns:
- a factored cost function