public class PLCAddressBlock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
debugLevel
The debug level.
|
int |
errorCount
The error count for the block.
|
static int |
executorThreadCount
The number of thread to exec to splitting the values read.
|
static int |
FULL |
static int |
globalUniqueID |
static int |
HIGHER |
int |
imageSize
The number of bytes to read/write.
|
static int |
LOWER |
static int |
MUCH_HIGHER |
static int |
MUCH_LOWER |
static int |
NOT_APPROPRIATE |
int |
packetCount
The number of packets that have been read or written,
or a useful unique packet ID, depends on how you look at it.
|
DirtyVector<? super PLCServer> |
readServers
The tables of read and write servers.
|
int |
startAddress
The starting address of this block expressed as an integer.
|
int |
uniqueID |
static int |
WITHIN |
DirtyVector<? super PLCServer> |
writeServers |
Constructor and Description |
---|
PLCAddressBlock(PLCServer server)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PLCDataBlock |
_refreshImage()
Refresh the data in the block.
|
int |
add(PLCServer server,
boolean refresh)
Add the address.
|
int |
addressLocation(int address,
int size)
Ask if the address could be added to this address block.
|
int |
canBeAdded(PLCServer server)
Ask if the address could be added to this address block.
|
boolean |
canBeAdded(PLCServer server,
int maxOffset)
Ask if the address could be added to this address block.
|
java.lang.String |
getBlockType()
Returns the type of this block.
|
int |
getDirty()
This method returns the value of the dirty flag.
|
int |
getImageSize()
Returns the number of bytes in the current block.
|
int |
getMaximumBlockSize()
Returns the maximum allowable block size in bytes.
|
Timer |
getTimer() |
boolean |
isAppropriateAddress(PLCServer server)
Determines if this address points to the same type of address in the same PLC
as the rest of the block.
|
boolean |
isDirty()
This method returns true if the block has been marked as dirty.
|
boolean |
isStarted() |
PLCDataBlock |
refreshImage()
Refresh the data in the block.
|
void |
remove(PLCServer server)
Remove the server from the read servers array.
|
void |
requestRefresh()
Force an untimely refresh of the address block.
|
void |
setDirty(boolean flag)
Dirty tracking.
|
void |
setMaximumBlockSize(int maximumBlockSize)
Set the maximum allowable block size in bytes.
|
void |
start()
Start the timer.
|
void |
tick(Timer timer)
Refresh the image on the timer tick.
|
java.lang.String |
toString()
Return an intelligent description.
|
public static int debugLevel
public int errorCount
public static int executorThreadCount
public static final int FULL
public static int globalUniqueID
public static final int HIGHER
public int imageSize
public static final int LOWER
public static final int MUCH_HIGHER
public static final int MUCH_LOWER
public static final int NOT_APPROPRIATE
public int packetCount
public DirtyVector<? super PLCServer> readServers
public int startAddress
public transient int uniqueID
public static final int WITHIN
public DirtyVector<? super PLCServer> writeServers
public PLCAddressBlock(PLCServer server)
startAddress
- the starting address of the block.public PLCDataBlock _refreshImage()
public int add(PLCServer server, boolean refresh)
server
- the address to addrefresh
- whether to update the block after adding the addresspublic int addressLocation(int address, int size)
address
- the address to addpublic int canBeAdded(PLCServer server)
server
- the address to addpublic boolean canBeAdded(PLCServer server, int maxOffset)
server
- the address to addmaxOffset
- the maximum permitted number of byte above or below the blockpublic java.lang.String getBlockType()
public int getDirty()
public int getImageSize()
public int getMaximumBlockSize()
public Timer getTimer()
public boolean isAppropriateAddress(PLCServer server)
public boolean isDirty()
public boolean isStarted()
public PLCDataBlock refreshImage()
public void remove(PLCServer server)
public void requestRefresh()
public void setDirty(boolean flag)
public void setMaximumBlockSize(int maximumBlockSize)
public void start()
public void tick(Timer timer)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.