Methods Summary |
---|
int | getSize()This method returns the size of the allocated slots.
return theSlotData.length;
|
public org.omg.CORBA.Any | get_slot(int id)This method get the slot data for the given slot id (index).
// First check whether the slot is allocated
// If not, raise the invalid slot exception
if( id >= theSlotData.length ) {
throw new InvalidSlot();
}
if( theSlotData[id] == null ) {
theSlotData [id] = new AnyImpl(orb);
}
return theSlotData[ id ];
|
void | resetSlots()This method resets all the slot data to null if dirtyFlag is set.
if( dirtyFlag == true ) {
for( int i = 0; i < theSlotData.length; i++ ) {
theSlotData[i] = null;
}
}
|
public void | set_slot(int id, org.omg.CORBA.Any data)This method sets the slot data at the given slot id (index).
// First check whether the slot is allocated
// If not, raise the invalid slot exception
if( id >= theSlotData.length ) {
throw new InvalidSlot();
}
dirtyFlag = true;
theSlotData[id] = data;
|