public class KahinaSimplePropertySensor extends KahinaStepPropertySensor
Constructor and Description |
---|
KahinaSimplePropertySensor(KahinaControlAgent controlPoint) |
Modifier and Type | Method and Description |
---|---|
KahinaSimplePropertySensor |
copy(KahinaControlAgent controlPoint) |
void |
copyDataInto(KahinaSimplePropertySensor copy) |
boolean |
detectPattern(int stepID)
Returns true iff a step has the property detected by this sensor.
|
KahinaSimpleProperty |
getPattern()
Gets the step pattern associated with this control point.
|
KahinaSimpleProperty |
getStepProperty() |
void |
setPattern(KahinaSimpleProperty pattern)
Associates this control point with a new step pattern.
|
copyDataInto
public KahinaSimplePropertySensor(KahinaControlAgent controlPoint)
public KahinaSimplePropertySensor copy(KahinaControlAgent controlPoint)
copy
in class KahinaStepPropertySensor
public void copyDataInto(KahinaSimplePropertySensor copy)
public KahinaSimpleProperty getStepProperty()
getStepProperty
in class KahinaStepPropertySensor
public KahinaSimpleProperty getPattern()
public void setPattern(KahinaSimpleProperty pattern)
pattern
- the step pattern to be associated with this control pointpublic boolean detectPattern(int stepID)
KahinaStepPropertySensor
detectPattern
in class KahinaStepPropertySensor
stepID
- ID of the step which the sensor is to detect for its property.