• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DPTXlatorBoolean类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中tuwien.auto.calimero.dptxlator.DPTXlatorBoolean的典型用法代码示例。如果您正苦于以下问题:Java DPTXlatorBoolean类的具体用法?Java DPTXlatorBoolean怎么用?Java DPTXlatorBoolean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DPTXlatorBoolean类属于tuwien.auto.calimero.dptxlator包,在下文中一共展示了DPTXlatorBoolean类的40个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: asBool

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * Returns the data of the received event as boolean datapoint value.
 * <p>
 *
 * @return the received value of type boolean
 * @throws KnxFormatException on not supported or not available boolean DPT
 */
public boolean asBool() throws KnxFormatException {
    try {
        final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
        t.setData(data);
        return t.getValueBoolean();
    } catch (KNXFormatException ex) {
        throw new KnxFormatException(ex);
    }
}
 

开发者ID:tuxedo0801,
项目名称:slicKnx,
代码行数:17,
代码来源:GroupAddressEvent.java

示例2: readBool

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
@Override
public boolean readBool(final GroupAddress dst) throws KNXTimeoutException,
        KNXRemoteException, KNXLinkClosedException, KNXFormatException, InterruptedException {
    final byte[] apdu = readFromGroup(dst, priority, 0, 0);
    final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
    extractGroupASDU(apdu, t);
    return t.getValueBoolean();
}
 

开发者ID:tuxedo0801,
项目名称:slicKnx,
代码行数:9,
代码来源:SlicKnxProcessCommunicatorImpl.java

示例3: write

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
@Override
public void write(final GroupAddress dst, final boolean value) throws KNXTimeoutException,
        KNXLinkClosedException {
    try {
        final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
        t.setValue(value);
        write(dst, priority, t);
    } catch (final KNXFormatException ignore) {
    }
}
 

开发者ID:tuxedo0801,
项目名称:slicKnx,
代码行数:11,
代码来源:SlicKnxProcessCommunicatorImpl.java

示例4: writeResponse

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
public void writeResponse(final GroupAddress dst, final boolean value) throws KNXTimeoutException,
        KNXLinkClosedException {
    try {
        final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
        t.setValue(value);
        writeResponse(dst, priority, t);
    } catch (final KNXFormatException ignore) {
    }
}
 

开发者ID:tuxedo0801,
项目名称:slicKnx,
代码行数:10,
代码来源:SlicKnxProcessCommunicatorImpl.java

示例5: readBool

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
public boolean readBool(GroupAddress dst) throws KNXTimeoutException,
	KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
	final byte[] apdu = readFromGroup(dst, priority, 0, 0);
	final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
	extractGroupASDU(apdu, t);
	return t.getValueBoolean();
}
 

开发者ID:ow2-chameleon,
项目名称:fuchsia,
代码行数:9,
代码来源:ProcessCommunicatorImpl.java

示例6: write

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
public void write(GroupAddress dst, boolean value) throws KNXTimeoutException,
	KNXLinkClosedException
{
	try {
		final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
		t.setValue(value);
		write(dst, priority, t);
	}
	catch (final KNXFormatException ignore) {}
}
 

开发者ID:ow2-chameleon,
项目名称:fuchsia,
代码行数:11,
代码来源:ProcessCommunicatorImpl.java

示例7: testToDPTid

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toDPTid()
 * 
 * @throws KNXFormatException
 */
@Test
public void testToDPTid() throws KNXFormatException {

	//Test mapping of org.openhab.core.library.types.OnOffType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+OnOffType.class+"\"",
			DPTXlatorBoolean.DPT_SWITCH.getID(), KNXCoreTypeMapper.toDPTid(OnOffType.class));

	//Test mapping of org.openhab.core.library.types.IncreaseDecreaseType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+IncreaseDecreaseType.class+"\"",
			DPTXlator3BitControlled.DPT_CONTROL_DIMMING.getID(), KNXCoreTypeMapper.toDPTid(IncreaseDecreaseType.class));

	//Test mapping of org.openhab.core.library.types.UpDownType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+UpDownType.class+"\"",
			DPTXlatorBoolean.DPT_UPDOWN.getID(), KNXCoreTypeMapper.toDPTid(UpDownType.class));

	//Test mapping of org.openhab.core.library.types.StopMoveType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+StopMoveType.class+"\"",
			DPTXlatorBoolean.DPT_START.getID(), KNXCoreTypeMapper.toDPTid(StopMoveType.class));

	//Test mapping of org.openhab.core.library.types.OpenClosedType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+OpenClosedType.class+"\"",
			DPTXlatorBoolean.DPT_WINDOW_DOOR.getID(), KNXCoreTypeMapper.toDPTid(OpenClosedType.class));

	//Test mapping of org.openhab.core.library.types.PercentType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+PercentType.class+"\"",
			DPTXlator8BitUnsigned.DPT_SCALING.getID(), KNXCoreTypeMapper.toDPTid(PercentType.class));

	//Test mapping of org.openhab.core.library.types.DecimalType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+DecimalType.class+"\"",
			DPTXlator2ByteFloat.DPT_TEMPERATURE.getID(), KNXCoreTypeMapper.toDPTid(DecimalType.class));

	//Test mapping of org.openhab.core.library.types.DateTimeType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+DateTimeType.class+"\"",
			DPTXlatorTime.DPT_TIMEOFDAY.getID(), KNXCoreTypeMapper.toDPTid(DateTimeType.class));

	//Test mapping of org.openhab.core.library.types.StringType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+StringType.class+"\"",
			DPTXlatorString.DPT_STRING_8859_1.getID(), KNXCoreTypeMapper.toDPTid(StringType.class));

	//Test mapping of org.openhab.core.library.types.HSBType
	assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \""+HSBType.class+"\"",
			DPTXlatorRGB.DPT_RGB.getID(), KNXCoreTypeMapper.toDPTid(HSBType.class));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:49,
代码来源:KNXCoreTypeMapperTest.java

示例8: testTypeMappingB1_1_007

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.007 DPT_STEP
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_007() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_STEP, OnOffType.class, "decrease", "increase");

}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:11,
代码来源:KNXCoreTypeMapperTest.java

示例9: testToDPTid

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toDPTid()
 *
 * @throws KNXFormatException
 */
@Test
public void testToDPTid() throws KNXFormatException {

    // Test mapping of org.openhab.core.library.types.OnOffType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + OnOffType.class + "\"",
            DPTXlatorBoolean.DPT_SWITCH.getID(), KNXCoreTypeMapper.toDPTid(OnOffType.class));

    // Test mapping of org.openhab.core.library.types.IncreaseDecreaseType
    assertEquals(
            "KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + IncreaseDecreaseType.class + "\"",
            DPTXlator3BitControlled.DPT_CONTROL_DIMMING.getID(),
            KNXCoreTypeMapper.toDPTid(IncreaseDecreaseType.class));

    // Test mapping of org.openhab.core.library.types.UpDownType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + UpDownType.class + "\"",
            DPTXlatorBoolean.DPT_UPDOWN.getID(), KNXCoreTypeMapper.toDPTid(UpDownType.class));

    // Test mapping of org.openhab.core.library.types.StopMoveType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + StopMoveType.class + "\"",
            DPTXlatorBoolean.DPT_START.getID(), KNXCoreTypeMapper.toDPTid(StopMoveType.class));

    // Test mapping of org.openhab.core.library.types.OpenClosedType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + OpenClosedType.class + "\"",
            DPTXlatorBoolean.DPT_WINDOW_DOOR.getID(), KNXCoreTypeMapper.toDPTid(OpenClosedType.class));

    // Test mapping of org.openhab.core.library.types.PercentType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + PercentType.class + "\"",
            DPTXlator8BitUnsigned.DPT_SCALING.getID(), KNXCoreTypeMapper.toDPTid(PercentType.class));

    // Test mapping of org.openhab.core.library.types.DecimalType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + DecimalType.class + "\"",
            DPTXlator2ByteFloat.DPT_TEMPERATURE.getID(), KNXCoreTypeMapper.toDPTid(DecimalType.class));

    // Test mapping of org.openhab.core.library.types.DateTimeType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + DateTimeType.class + "\"",
            DPTXlatorTime.DPT_TIMEOFDAY.getID(), KNXCoreTypeMapper.toDPTid(DateTimeType.class));

    // Test mapping of org.openhab.core.library.types.StringType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + StringType.class + "\"",
            DPTXlatorString.DPT_STRING_8859_1.getID(), KNXCoreTypeMapper.toDPTid(StringType.class));

    // Test mapping of org.openhab.core.library.types.HSBType
    assertEquals("KNXCoreTypeMapper.toDPTid returned datapoint type for class  \"" + HSBType.class + "\"",
            DPTXlatorRGB.DPT_RGB.getID(), KNXCoreTypeMapper.toDPTid(HSBType.class));
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:51,
代码来源:KNXCoreTypeMapperTest.java

示例10: testTypeMappingB1_1_007

点赞 2

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.007 DPT_STEP
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_007() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_STEP, OnOffType.class, "decrease", "increase");

}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:11,
代码来源:KNXCoreTypeMapperTest.java

示例11: asBool

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * Returns the ASDU of the received process event as boolean datapoint value.
 * <p>
 * This method has to be invoked manually by the user (either in
 * {@link #groupReadResponse(ProcessEvent)} or
 * {@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
 * datapoint type.
 * 
 * @param e the process event with the ASDU to translate
 * @return the received value of type boolean
 * @throws KNXFormatException on not supported or not available boolean DPT
 */
public boolean asBool(ProcessEvent e) throws KNXFormatException
{
	final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
	t.setData(e.getASDU());
	return t.getValueBoolean();
}
 

开发者ID:ow2-chameleon,
项目名称:fuchsia,
代码行数:19,
代码来源:ProcessListenerEx.java

示例12: testTypeMappingB1_1_001

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.001 DPT_SWITCH
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_001() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_SWITCH, OnOffType.class, "off", "on");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例13: testTypeMappingB1_1_002

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.002 DPT_BOOL
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_002() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_BOOL, OnOffType.class, "false", "true");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例14: testTypeMappingB1_1_003

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.003 DPT_ENABLE
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_003() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_ENABLE, OnOffType.class, "disable", "enable");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例15: testTypeMappingB1_1_004

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.004 DPT_RAMP
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_004() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_RAMP, OnOffType.class, "no ramp", "ramp");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例16: testTypeMappingB1_1_005

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.005 DPT_ALARM
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_005() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_ALARM, OnOffType.class, "no alarm", "alarm");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例17: testTypeMappingB1_1_006

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.006 DPT_BINARYVALUE
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_006() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_BINARYVALUE, OnOffType.class, "low", "high");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例18: testTypeMappingB1_1_008

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.008 DPT_UPDOWN
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_008() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_UPDOWN, UpDownType.class, "up", "down");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例19: testTypeMappingB1_1_009

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.009 DPT_UPDOWN
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_009() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_OPENCLOSE, OpenClosedType.class, "open", "close");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例20: testTypeMappingB1_1_010

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.010 DPT_START
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_010() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_START, StopMoveType.class, "stop", "start");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例21: testTypeMappingB1_1_011

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.011 DPT_STATE
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_011() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_STATE, OnOffType.class, "inactive", "active");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例22: testTypeMappingB1_1_012

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.012 DPT_INVERT
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_012() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_INVERT, OnOffType.class, "not inverted", "inverted");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例23: testTypeMappingB1_1_013

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.013 DPT_DIMSENDSTYLE
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_013() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_DIMSENDSTYLE, OnOffType.class, "start/stop", "cyclic");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例24: testTypeMappingB1_1_014

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.014 DPT_INPUTSOURCE
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_014() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_INPUTSOURCE, OnOffType.class, "fixed", "calculated");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例25: testTypeMappingB1_1_015

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.015 DPT_RESET
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_015() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_RESET, OnOffType.class, "no action", "reset");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例26: testTypeMappingB1_1_018

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.018 DPT_OCCUPANCY
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_018() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_OCCUPANCY, OnOffType.class, "not occupied", "occupied");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例27: testTypeMappingB1_1_019

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.019 DPT_WINDOW_DOOR
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_019() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_WINDOW_DOOR, OpenClosedType.class, "closed", "open");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例28: testTypeMappingB1_1_021

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.021 DPT_LOGICAL_FUNCTION
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_021() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_LOGICAL_FUNCTION, OnOffType.class, "OR", "AND");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例29: testTypeMappingB1_1_022

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.022 DPT_SCENE_AB
 * Remark: mapped to DecimalType
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_022() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_SCENE_AB, DecimalType.class, "0", "1");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:11,
代码来源:KNXCoreTypeMapperTest.java

示例30: testTypeMappingB1_1_023

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.023 DPT_SHUTTER_BLINDS_MODE
 * 
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_023() throws KNXFormatException {
	testTypeMappingB1(DPTXlatorBoolean.DPT_SHUTTER_BLINDS_MODE, OnOffType.class, "only move up/down", "move up/down + step-stop");
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例31: testTypeMappingB1_1_001

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.001 DPT_SWITCH
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_001() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_SWITCH, OnOffType.class, "off", "on");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例32: testTypeMappingB1_1_002

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.002 DPT_BOOL
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_002() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_BOOL, OnOffType.class, "false", "true");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例33: testTypeMappingB1_1_003

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.003 DPT_ENABLE
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_003() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_ENABLE, OnOffType.class, "disable", "enable");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例34: testTypeMappingB1_1_004

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.004 DPT_RAMP
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_004() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_RAMP, OnOffType.class, "no ramp", "ramp");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例35: testTypeMappingB1_1_005

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.005 DPT_ALARM
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_005() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_ALARM, OnOffType.class, "no alarm", "alarm");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例36: testTypeMappingB1_1_006

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.006 DPT_BINARYVALUE
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_006() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_BINARYVALUE, OnOffType.class, "low", "high");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例37: testTypeMappingB1_1_008

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.008 DPT_UPDOWN
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_008() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_UPDOWN, UpDownType.class, "up", "down");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例38: testTypeMappingB1_1_009

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.009 DPT_UPDOWN
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_009() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_OPENCLOSE, OpenClosedType.class, "open", "close");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例39: testTypeMappingB1_1_010

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.010 DPT_START
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_010() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_START, StopMoveType.class, "stop", "start");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java

示例40: testTypeMappingB1_1_011

点赞 1

import tuwien.auto.calimero.dptxlator.DPTXlatorBoolean; //导入依赖的package包/类
/**
 * KNXCoreTypeMapper tests method typeMapper.toType() for type “Datapoint Types B1" KNX ID: 1.011 DPT_STATE
 *
 * @throws KNXFormatException
 */
@Test
public void testTypeMappingB1_1_011() throws KNXFormatException {
    testTypeMappingB1(DPTXlatorBoolean.DPT_STATE, OnOffType.class, "inactive", "active");
}
 

开发者ID:openhab,
项目名称:openhab1-addons,
代码行数:10,
代码来源:KNXCoreTypeMapperTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)