net.wimpi.modbus.procimg
Interface ProcessImageFactory

All Known Implementing Classes:
DefaultProcessImageFactory

public interface ProcessImageFactory

Interface defining the factory methods for the process image and it's elements.

Version:
@version@ (@date@)
Author:
Dieter Wimberger

Method Summary
 DigitalIn createDigitalIn()
          Returns a new DigitalIn instance.
 DigitalIn createDigitalIn(boolean state)
          Returns a new DigitalIn instance with the given state.
 DigitalOut createDigitalOut()
          Returns a new DigitalOut instance.
 DigitalOut createDigitalOut(boolean b)
          Returns a new DigitalOut instance with the given state.
 InputRegister createInputRegister()
          Returns a new InputRegister instance.
 InputRegister createInputRegister(byte b1, byte b2)
          Returns a new InputRegister instance with a given value.
 ProcessImageImplementation createProcessImageImplementation()
          Returns a new ProcessImageImplementation instance.
 Register createRegister()
          Creates a new Register instance.
 Register createRegister(byte b1, byte b2)
          Returns a new Register instance with a given value.
 

Method Detail

createProcessImageImplementation

ProcessImageImplementation createProcessImageImplementation()
Returns a new ProcessImageImplementation instance.

Returns:
a ProcessImageImplementation instance.

createDigitalIn

DigitalIn createDigitalIn()
Returns a new DigitalIn instance.

Returns:
a DigitalIn instance.

createDigitalIn

DigitalIn createDigitalIn(boolean state)
Returns a new DigitalIn instance with the given state.

Parameters:
state - true if set, false otherwise.
Returns:
a DigitalIn instance.

createDigitalOut

DigitalOut createDigitalOut()
Returns a new DigitalOut instance.

Returns:
a DigitalOut instance.

createDigitalOut

DigitalOut createDigitalOut(boolean b)
Returns a new DigitalOut instance with the given state.

Parameters:
b - true if set, false otherwise.
Returns:
a DigitalOut instance.

createInputRegister

InputRegister createInputRegister()
Returns a new InputRegister instance.

Returns:
an InputRegister instance.

createInputRegister

InputRegister createInputRegister(byte b1,
                                  byte b2)
Returns a new InputRegister instance with a given value.

Parameters:
b1 - the first byte.
b2 - the second byte.
Returns:
an InputRegister instance.

createRegister

Register createRegister()
Creates a new Register instance.

Returns:
a Register instance.

createRegister

Register createRegister(byte b1,
                        byte b2)
Returns a new Register instance with a given value.

Parameters:
b1 - the first byte.
b2 - the second byte.
Returns:
a Register instance.


Copyright © 2010. All Rights Reserved.