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

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

java 2次浏览

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

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

示例1: readData

点赞 3

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din) throws IOException {

		m_Reference = din.readShort();
		// read lengths
		int wc = din.readUnsignedShort();

		// read values
		if (m_NonWordDataHandler == null) {
			m_Registers = new Register[wc];
			ProcessImageFactory pimf = m_umc.getProcessImageFactory();
			for (int i = 0; i < wc; i++) {
				m_Registers[i] = pimf.createRegister(din.readByte(),
						din.readByte());
			}
		} else {
			m_NonWordDataHandler.readData(din, m_Reference, wc);
		}
	}
 

开发者ID:Dn9x,
项目名称:dn-modbus,
代码行数:19,
代码来源:UnityWriteMultipleRegistersRequest.java

示例2: readData

点赞 3

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
@Override
public void readData(DataInput din) throws IOException {

    m_Reference = din.readShort();
    // read lengths
    int wc = din.readUnsignedShort();
    int bc = din.readUnsignedByte();

    // read values
    if (m_NonWordDataHandler == null) {
        m_Registers = new Register[wc];
        ProcessImageFactory pimf = ModbusCoupler.getReference().getProcessImageFactory();
        for (int i = 0; i < wc; i++) {
            m_Registers[i] = pimf.createRegister(din.readByte(), din.readByte());
        }
    } else {
        m_NonWordDataHandler.readData(din, m_Reference, wc);
    }
}
 

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

示例3: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din)
    throws IOException {
  setByteCount(din.readUnsignedByte());

  m_Registers = new Register[getWordCount()];
  ProcessImageFactory pimf = ModbusCoupler.getReference().getProcessImageFactory();

  for (int k = 0; k < getWordCount(); k++) {
    m_Registers[k] = pimf.createRegister(din.readByte(), din.readByte());
  }

  //update data length
  setDataLength(getByteCount() + 1);
}
 

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

示例4: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din)
    throws IOException {
  setByteCount(din.readUnsignedByte());

  InputRegister[] registers = new InputRegister[getWordCount()];
  ProcessImageFactory pimf = ModbusCoupler.getReference().getProcessImageFactory();
  for (int k = 0; k < getWordCount(); k++) {
    registers[k] = pimf.createInputRegister(din.readByte(), din.readByte());
  }
  m_Registers = registers;
  //update data length
  setDataLength(getByteCount() + 1);
}
 

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

示例5: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din) throws IOException {
	setByteCount(din.readUnsignedByte());

	InputRegister[] registers = new InputRegister[getWordCount()];
	ProcessImageFactory pimf =  m_umc
			.getProcessImageFactory();
	for (int k = 0; k < getWordCount(); k++) {
		registers[k] = pimf.createInputRegister(din.readByte(),
				din.readByte());
	}
	m_Registers = registers;
	// update data length
	setDataLength(getByteCount() + 1);
}
 

开发者ID:Dn9x,
项目名称:dn-modbus,
代码行数:15,
代码来源:UnityReadInputRegistersResponse.java

示例6: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din) throws IOException {
	setByteCount(din.readUnsignedByte());

	m_Registers = new Register[getWordCount()];
	ProcessImageFactory pimf =  m_umc.getProcessImageFactory();

	for (int k = 0; k < getWordCount(); k++) {
		m_Registers[k] = pimf
				.createRegister(din.readByte(), din.readByte());
	}

	// update data length
	setDataLength(getByteCount() + 1);
}
 

开发者ID:Dn9x,
项目名称:dn-modbus,
代码行数:15,
代码来源:UnityReadMultipleRegistersResponse.java

示例7: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din) throws IOException {
	setByteCount(din.readUnsignedByte());

	m_Registers = new Register[getWordCount()];
	ProcessImageFactory pimf = ModbusCoupler.getReference()
			.getProcessImageFactory();

	for (int k = 0; k < getWordCount(); k++) {
		m_Registers[k] = pimf
				.createRegister(din.readByte(), din.readByte());
	}

	// update data length
	setDataLength(getByteCount() + 1);
}
 

开发者ID:jeick,
项目名称:jamod,
代码行数:16,
代码来源:ReadMultipleRegistersResponse.java

示例8: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
public void readData(DataInput din) throws IOException {
	setByteCount(din.readUnsignedByte());

	InputRegister[] registers = new InputRegister[getWordCount()];
	ProcessImageFactory pimf = ModbusCoupler.getReference()
			.getProcessImageFactory();
	for (int k = 0; k < getWordCount(); k++) {
		registers[k] = pimf.createInputRegister(din.readByte(),
				din.readByte());
	}
	m_Registers = registers;
	// update data length
	setDataLength(getByteCount() + 1);
}
 

开发者ID:jeick,
项目名称:jamod,
代码行数:15,
代码来源:ReadInputRegistersResponse.java

示例9: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
@Override
public void readData(DataInput din) throws IOException {
    setByteCount(din.readUnsignedByte());

    m_Registers = new Register[getWordCount()];
    ProcessImageFactory pimf = ModbusCoupler.getReference().getProcessImageFactory();

    for (int k = 0; k < getWordCount(); k++) {
        m_Registers[k] = pimf.createRegister(din.readByte(), din.readByte());
    }

    // update data length
    setDataLength(getByteCount() + 1);
}
 

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

示例10: readData

点赞 2

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
@Override
public void readData(DataInput din) throws IOException {
    setByteCount(din.readUnsignedByte());

    InputRegister[] registers = new InputRegister[getWordCount()];
    ProcessImageFactory pimf = ModbusCoupler.getReference().getProcessImageFactory();
    for (int k = 0; k < getWordCount(); k++) {
        registers[k] = pimf.createInputRegister(din.readByte(), din.readByte());
    }
    m_Registers = registers;
    // update data length
    setDataLength(getByteCount() + 1);
}
 

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

示例11: getProcessImageFactory

点赞 1

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
/**
 * Returns the actual <tt>ProcessImageFactory</tt> instance.
 *
 * @return a <tt>ProcessImageFactory</tt> instance.
 */
public ProcessImageFactory getProcessImageFactory() {
  return m_PIFactory;
}
 

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

示例12: setProcessImageFactory

点赞 1

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
/**
* Sets the <tt>ProcessImageFactory</tt> instance.
*
* @param factory the instance to be used for creating process
*        image instances.
*/
public void setProcessImageFactory(ProcessImageFactory factory) {
  m_PIFactory = factory;
}
 

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

示例13: getProcessImageFactory

点赞 1

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
/**
 * Returns the actual <tt>ProcessImageFactory</tt> instance.
 * 
 * @return a <tt>ProcessImageFactory</tt> instance.
 */
public ProcessImageFactory getProcessImageFactory() {
	return m_PIFactory;
}
 

开发者ID:jeick,
项目名称:jamod,
代码行数:9,
代码来源:ModbusCoupler.java

示例14: setProcessImageFactory

点赞 1

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
/**
 * Sets the <tt>ProcessImageFactory</tt> instance.
 * 
 * @param factory
 *            the instance to be used for creating process image instances.
 */
public void setProcessImageFactory(ProcessImageFactory factory) {
	m_PIFactory = factory;
}
 

开发者ID:jeick,
项目名称:jamod,
代码行数:10,
代码来源:ModbusCoupler.java

示例15: getProcessImageFactory

点赞 1

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
/**
 * Returns the actual <tt>ProcessImageFactory</tt> instance.
 *
 * @return a <tt>ProcessImageFactory</tt> instance.
 */
public ProcessImageFactory getProcessImageFactory() {
    return m_PIFactory;
}
 

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

示例16: setProcessImageFactory

点赞 1

import net.wimpi.modbus.procimg.ProcessImageFactory; //导入依赖的package包/类
/**
 * Sets the <tt>ProcessImageFactory</tt> instance.
 *
 * @param factory the instance to be used for creating process
 *            image instances.
 */
public void setProcessImageFactory(ProcessImageFactory factory) {
    m_PIFactory = factory;
}
 

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


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