ro.ciprianpascu.sbus.procimg.ProcessImageImplementation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of j2sbus Show documentation
Show all versions of j2sbus Show documentation
jamod is an object oriented implementation of the S-Bus protocol,
realized 100% in Java. It allows to quickly
realize master and slave applications in various transport flavors (IP
and serial).
The newest version!
/**
* Copyright 2002-2010 jamod development team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
***/
package ro.ciprianpascu.sbus.procimg;
/**
* Interface defining implementation specific
* details of the {@link ProcessImage}, adding
* mechanisms for creating and modifying the actual
* "process image".
*
* @author Dieter Wimberger
* @author Ciprian Pascu
* @version %I% (%G%)
*/
public interface ProcessImageImplementation extends ProcessImage {
/**
* Sets a new {@link DigitalOut} instance at the
* given reference.
*
* @param ref the reference as {@link int}.
* @param _do the new {@link DigitalOut} instance to be
* set.
*
* @throws IllegalAddressException if the reference is invalid.
*/
public void setDigitalOut(int ref, DigitalOut _do) throws IllegalAddressException;
/**
* Adds a new {@link DigitalOut} instance.
*
* @param _do the {@link DigitalOut} instance to be
* added.
*/
public void addDigitalOut(DigitalOut _do);
/**
* Removes a given {@link DigitalOut} instance.
*
* @param _do the {@link DigitalOut} instance to be
* removed.
*/
public void removeDigitalOut(DigitalOut _do);
/**
* Sets a new {@link DigitalIn} instance at the
* given reference.
*
* @param ref the reference as {@link int}.
* @param di the new {@link DigitalIn} instance to be
* set.
*
* @throws IllegalAddressException if the reference is invalid.
*/
public void setDigitalIn(int ref, DigitalIn di) throws IllegalAddressException;
/**
* Adds a new {@link DigitalIn} instance.
*
* @param di the {@link DigitalIn} instance to be
* added.
*/
public void addDigitalIn(DigitalIn di);
/**
* Removes a given {@link DigitalIn} instance.
*
* @param di the {@link DigitalIn} instance to be
* removed.
*/
public void removeDigitalIn(DigitalIn di);
/**
* Sets a new {@link InputRegister} instance at the
* given reference.
*
* @param ref the reference as {@link int}.
* @param reg the new {@link InputRegister} instance to be
* set.
*
* @throws IllegalAddressException if the reference is invalid.
*/
public void setInputRegister(int ref, InputRegister reg) throws IllegalAddressException;
/**
* Adds a new {@link InputRegister} instance.
*
* @param reg the {@link InputRegister} instance to be
* added.
*/
public void addInputRegister(InputRegister reg);
/**
* Removes a given {@link InputRegister} instance.
*
* @param reg the {@link InputRegister} instance to be
* removed.
*/
public void removeInputRegister(InputRegister reg);
/**
* Sets a new {@link Register} instance at the
* given reference.
*
* @param ref the reference as {@link int}.
* @param reg the new {@link Register} instance to be
* set.
*
* @throws IllegalAddressException if the reference is invalid.
*/
public void setRegister(int ref, Register reg) throws IllegalAddressException;
/**
* Adds a new {@link Register} instance.
*
* @param reg the {@link Register} instance to be
* added.
*/
public void addRegister(Register reg);
/**
* Removes a given {@link Register} instance.
*
* @param reg the {@link Register} instance to be
* removed.
*/
public void removeRegister(Register reg);
/**
* Defines the set state (i.e. true) of
* a digital input or output.
*/
public static final byte DIG_TRUE = 1;
/**
* Defines the unset state (i.e. false) of
* a digital input or output.
*/
public static final byte DIG_FALSE = 0;
/**
* Defines the invalid state of
* a digital input or output.
*/
public static final byte DIG_INVALID = -1;
}// ProcessImageImplementation