public class SimpleProcessImage extends Object implements ProcessImageImplementation
| Modifier and Type | Field and Description |
|---|---|
protected Vector<DigitalIn> |
m_DigitalInputs
The M digital inputs.
|
protected Vector<DigitalOut> |
m_DigitalOutputs
The M digital outputs.
|
protected Vector<InputRegister> |
m_InputRegisters
The M input registers.
|
protected boolean |
m_Locked
The M locked.
|
protected Vector<Register> |
m_Registers
The M registers.
|
DIG_FALSE, DIG_INVALID, DIG_TRUE| Constructor and Description |
|---|
SimpleProcessImage()
Constructs a new SimpleProcessImage instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDigitalIn(DigitalIn di)
Adds a new DigitalIn instance.
|
void |
addDigitalOut(DigitalOut _do)
Adds a new DigitalOut instance.
|
void |
addInputRegister(InputRegister reg)
Adds a new InputRegister instance.
|
void |
addRegister(Register reg)
Adds a new Register instance.
|
DigitalIn |
getDigitalIn(int ref)
Returns the DigitalIn instance at the given
reference.
|
int |
getDigitalInCount()
Returns the number of DigitalIn instances
in this ProcessImage.
|
DigitalIn[] |
getDigitalInRange(int ref,
int count)
Returns a range of DigitalIn instances.
|
DigitalOut |
getDigitalOut(int ref)
Returns the DigitalOut instance at the given
reference.
|
int |
getDigitalOutCount()
Returns the number of DigitalOut instances
in this ProcessImage.
|
DigitalOut[] |
getDigitalOutRange(int ref,
int count)
Returns a range of DigitalOut instances.
|
InputRegister |
getInputRegister(int ref)
Returns the InputRegister instance at the given
reference.
|
int |
getInputRegisterCount()
Returns the number of InputRegister instances
in this ProcessImage.
|
InputRegister[] |
getInputRegisterRange(int ref,
int count)
Returns a range of InputRegister instances.
|
Register |
getRegister(int ref)
Returns the Register instance at the given
reference.
|
int |
getRegisterCount()
Returns the number of Register instances
in this ProcessImage.
|
Register[] |
getRegisterRange(int ref,
int count)
Returns a range of Register instances.
|
boolean |
isLocked()
Is locked boolean.
|
void |
removeDigitalIn(DigitalIn di)
Removes a given DigitalIn instance.
|
void |
removeDigitalOut(DigitalOut _do)
Removes a given DigitalOut instance.
|
void |
removeInputRegister(InputRegister reg)
Removes a given InputRegister instance.
|
void |
removeRegister(Register reg)
Removes a given Register instance.
|
void |
setDigitalIn(int ref,
DigitalIn di)
Sets a new DigitalIn instance at the
given reference.
|
void |
setDigitalOut(int ref,
DigitalOut _do)
Sets a new DigitalOut instance at the
given reference.
|
void |
setInputRegister(int ref,
InputRegister reg)
Sets a new InputRegister instance at the
given reference.
|
void |
setLocked(boolean locked)
Sets locked.
|
void |
setRegister(int ref,
Register reg)
Sets a new Register instance at the
given reference.
|
protected Vector<DigitalOut> m_DigitalOutputs
protected Vector<InputRegister> m_InputRegisters
protected boolean m_Locked
public SimpleProcessImage()
public boolean isLocked()
public void setLocked(boolean locked)
locked - the lockedpublic void addDigitalIn(DigitalIn di)
ProcessImageImplementationaddDigitalIn in interface ProcessImageImplementationdi - the DigitalIn instance to be added.public void removeDigitalIn(DigitalIn di)
ProcessImageImplementationremoveDigitalIn in interface ProcessImageImplementationdi - the DigitalIn instance to be removed.public void setDigitalIn(int ref,
DigitalIn di)
throws IllegalAddressException
ProcessImageImplementationsetDigitalIn in interface ProcessImageImplementationref - the reference as int.di - the new DigitalIn instance to be set.IllegalAddressException - if the reference is invalid.public DigitalIn getDigitalIn(int ref) throws IllegalAddressException
ProcessImagegetDigitalIn in interface ProcessImageref - the reference.IllegalAddressException - if the reference is invalid.public int getDigitalInCount()
ProcessImagegetDigitalInCount in interface ProcessImagepublic DigitalIn[] getDigitalInRange(int ref, int count)
ProcessImagegetDigitalInRange in interface ProcessImageref - the start offset.count - the amount of DigitalIn from the offset.public void addDigitalOut(DigitalOut _do)
ProcessImageImplementationaddDigitalOut in interface ProcessImageImplementation_do - the DigitalOut instance to be added.public void removeDigitalOut(DigitalOut _do)
ProcessImageImplementationremoveDigitalOut in interface ProcessImageImplementation_do - the DigitalOut instance to be removed.public void setDigitalOut(int ref,
DigitalOut _do)
throws IllegalAddressException
ProcessImageImplementationsetDigitalOut in interface ProcessImageImplementationref - the reference as int._do - the new DigitalOut instance to be set.IllegalAddressException - if the reference is invalid.public DigitalOut getDigitalOut(int ref) throws IllegalAddressException
ProcessImagegetDigitalOut in interface ProcessImageref - the reference.IllegalAddressException - if the reference is invalid.public int getDigitalOutCount()
ProcessImagegetDigitalOutCount in interface ProcessImagepublic DigitalOut[] getDigitalOutRange(int ref, int count)
ProcessImagegetDigitalOutRange in interface ProcessImageref - the start offset.count - the amount of DigitalOut from the offset.public void addInputRegister(InputRegister reg)
ProcessImageImplementationaddInputRegister in interface ProcessImageImplementationreg - the InputRegister instance to be added.public void removeInputRegister(InputRegister reg)
ProcessImageImplementationremoveInputRegister in interface ProcessImageImplementationreg - the InputRegister instance to be removed.public void setInputRegister(int ref,
InputRegister reg)
throws IllegalAddressException
ProcessImageImplementationsetInputRegister in interface ProcessImageImplementationref - the reference as int.reg - the new InputRegister instance to be set.IllegalAddressException - if the reference is invalid.public InputRegister getInputRegister(int ref) throws IllegalAddressException
ProcessImagegetInputRegister in interface ProcessImageref - the reference.IllegalAddressException - if the reference is invalid.public int getInputRegisterCount()
ProcessImagegetInputRegisterCount in interface ProcessImagepublic InputRegister[] getInputRegisterRange(int ref, int count)
ProcessImagegetInputRegisterRange in interface ProcessImageref - the start offset.count - the amount of InputRegister from the offset.public void addRegister(Register reg)
ProcessImageImplementationaddRegister in interface ProcessImageImplementationreg - the Register instance to be added.public void removeRegister(Register reg)
ProcessImageImplementationremoveRegister in interface ProcessImageImplementationreg - the Register instance to be removed.public void setRegister(int ref,
Register reg)
throws IllegalAddressException
ProcessImageImplementationsetRegister in interface ProcessImageImplementationref - the reference as int.reg - the new Register instance to be set.IllegalAddressException - if the reference is invalid.public Register getRegister(int ref) throws IllegalAddressException
ProcessImagegetRegister in interface ProcessImageref - the reference.IllegalAddressException - if the reference is invalid.public int getRegisterCount()
ProcessImagegetRegisterCount in interface ProcessImagepublic Register[] getRegisterRange(int ref, int count)
ProcessImagegetRegisterRange in interface ProcessImageref - the start offset.count - the amount of Register from the offset.Copyright © 2017. All rights reserved.