Real-Time Java AOCS Framework v1.0 API Specification

JbedSmmApplication.Utilities
Class IntArray

java.lang.Object
  |
  +--RtjAocsFramework.BasicObjects.RootObject
        |
        +--JbedSmmApplication.Utilities.IntArray

public class IntArray
extends RootObject

Encapsulation of a list for integer data.

Version:
1.0
Author:
V. Cechticky/A. Pasetti (ETH-Zurich)

Constructor Summary
IntArray()
          Constructs a new list for storing integer data.
 
Method Summary
 int getArraySize()
          Returns the list size.
 int getDataByPosition(int i)
          Returns the integer data stored in the integer array at position i.
 void setArraySize(int size)
          The initialization method.
 void setDataAtPosition(int data, int i)
          Stores integer data at the specific position.
 
Methods inherited from class RtjAocsFramework.BasicObjects.RootObject
getClassId, getInstanceId, setClassId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntArray

public IntArray()
Constructs a new list for storing integer data.

Method Detail

setArraySize

public void setArraySize(int size)
The initialization method. Creates the integer list and sets the list size.

Parameters:
size - the list size

getArraySize

public int getArraySize()
Returns the list size.

Returns:
The list size.

getDataByPosition

public int getDataByPosition(int i)
Returns the integer data stored in the integer array at position i.

Parameters:
i - position in the integer array
Returns:
The integer data from the specified position.

setDataAtPosition

public void setDataAtPosition(int data,
                              int i)
Stores integer data at the specific position.

Parameters:
data - the integer data
i - the position in the list

Real-Time Java AOCS Framework v1.0 API Specification

Real-Time Java AOCS Framework project home page

Automatic Control Laboratory, ETH Zuerich
Physikstrasse 3
CH-8092 Zuerich, Switzerland