jamod at SF

net.wimpi.modbus.procimg
Class DefaultProcessImageFactory

java.lang.Object
  extended bynet.wimpi.modbus.procimg.DefaultProcessImageFactory
All Implemented Interfaces:
ProcessImageFactory

public class DefaultProcessImageFactory
extends java.lang.Object
implements ProcessImageFactory

The default ProcessImageFactory.

Version:
1.2rc1 (09/11/2004)
Author:
Dieter Wimberger

Constructor Summary
DefaultProcessImageFactory()
           
 
Method Summary
 DigitalIn createDigitalIn()
          Returns a new SimpleDigitalIn instance.
 DigitalIn createDigitalIn(boolean state)
          Returns a new DigitalIn instance with the given state.
 DigitalOut createDigitalOut()
          Returns a new SimpleDigitalOut instance.
 DigitalOut createDigitalOut(boolean b)
          Returns a new DigitalOut instance with the given state.
 InputRegister createInputRegister()
          Returns a new SimpleInputRegister instance.
 InputRegister createInputRegister(byte b1, byte b2)
          Returns a new InputRegister instance with a given value.
 ProcessImageImplementation createProcessImageImplementation()
          Returns a new SimpleProcessImage instance.
 Register createRegister()
          Creates a new SimpleRegister instance.
 Register createRegister(byte b1, byte b2)
          Returns a new Register instance with a given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProcessImageFactory

public DefaultProcessImageFactory()
Method Detail

createProcessImageImplementation

public ProcessImageImplementation createProcessImageImplementation()
Returns a new SimpleProcessImage instance.

Specified by:
createProcessImageImplementation in interface ProcessImageFactory
Returns:
a SimpleProcessImage instance.

createDigitalIn

public DigitalIn createDigitalIn()
Returns a new SimpleDigitalIn instance.

Specified by:
createDigitalIn in interface ProcessImageFactory
Returns:
a SimpleDigitalIn instance.

createDigitalIn

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

Specified by:
createDigitalIn in interface ProcessImageFactory
Parameters:
state - true if set, false otherwise.
Returns:
a SimpleDigitalIn instance.

createDigitalOut

public DigitalOut createDigitalOut()
Returns a new SimpleDigitalOut instance.

Specified by:
createDigitalOut in interface ProcessImageFactory
Returns:
a SimpleDigitalOut instance.

createDigitalOut

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

Specified by:
createDigitalOut in interface ProcessImageFactory
Parameters:
b - true if set, false otherwise.
Returns:
a SimpleDigitalOut instance.

createInputRegister

public InputRegister createInputRegister()
Returns a new SimpleInputRegister instance.

Specified by:
createInputRegister in interface ProcessImageFactory
Returns:
a SimpleInputRegister instance.

createInputRegister

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

Specified by:
createInputRegister in interface ProcessImageFactory
Parameters:
b1 - the first byte.
b2 - the second byte.
Returns:
an InputRegister instance.

createRegister

public Register createRegister()
Creates a new SimpleRegister instance.

Specified by:
createRegister in interface ProcessImageFactory
Returns:
a SimpleRegister instance.

createRegister

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

Specified by:
createRegister in interface ProcessImageFactory
Parameters:
b1 - the first byte.
b2 - the second byte.
Returns:
a Register instance.

jamod at SF

Copyright © 2002-2004 jamod development team.