org.epics.ioc.pv
Interface PVArray

All Superinterfaces:
PVData, Requestor
All Known Subinterfaces:
PVArrayArray, PVBooleanArray, PVByteArray, PVDoubleArray, PVEnumArray, PVFloatArray, PVIntArray, PVLinkArray, PVLongArray, PVMenuArray, PVShortArray, PVStringArray, PVStructureArray
All Known Implementing Classes:
AbstractDBArray

public interface PVArray
extends PVData

Base interface for array data. Each PVType has an array interface that extends PVArray.

Author:
mrk

Method Summary
 int getCapacity()
          Get the current capacity of the array, i.e.
 int getLength()
          Get the current length of the array.
 boolean isCapacityMutable()
          Can the capacity be changed?
 void setCapacity(int len)
          Set the capacity.
 void setLength(int len)
          Set the length of the array.
 
Methods inherited from interface org.epics.ioc.pv.PVData
getField, getFullFieldName, getParent, getPVRecord, getSupportName, replacePVData, setSupportName, toString, toString
 
Methods inherited from interface org.epics.ioc.util.Requestor
getRequestorName, message
 

Method Detail

getLength

int getLength()
Get the current length of the array.

Returns:
The current length of the array.

setLength

void setLength(int len)
Set the length of the array.

Parameters:
len - Set the length.
Throws:
java.lang.IllegalStateException - if the field is not mutable.

getCapacity

int getCapacity()
Get the current capacity of the array, i.e. the allocated number of elements.

Returns:
The capacity.

setCapacity

void setCapacity(int len)
Set the capacity.

Parameters:
len - The new capacity for the array.
Throws:
java.lang.IllegalStateException - if the capacity can't be changed.

isCapacityMutable

boolean isCapacityMutable()
Can the capacity be changed?

Returns:
If it can be modified.