eu.reservoir.monitoring.core.list
Interface MList

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultMList

public interface MList
extends java.io.Serializable

An interface for a List that can be used as a ProbeAttributeType. This is called MList (meaning Measurment List) to differentiate it from java's builtin List type.


Method Summary
 MList add(MListValue value)
          Add a value to the list.
 MList add(java.lang.Object value)
          Add an object value to the list.
 MListValue get(int n)
          Get the Nth element from a list.
 ProbeAttributeType getType()
          Get the type of the elements for a MList.
 MList set(int n, MListValue value)
          Set the Nth element of a list.
 int size()
          Get the size of the list
 java.util.List<MListValue> toList()
          Convert the List to a java.util.List.
 

Method Detail

size

int size()
Get the size of the list


get

MListValue get(int n)
Get the Nth element from a list.


set

MList set(int n,
          MListValue value)
          throws TypeException
Set the Nth element of a list.

Throws:
TypeException

add

MList add(MListValue value)
          throws TypeException
Add a value to the list.

Throws:
TypeException

add

MList add(java.lang.Object value)
          throws TypeException
Add an object value to the list. This throws an Error if the type of the value is not one supported by ProbeAttributeType.

Throws:
TypeException

getType

ProbeAttributeType getType()
Get the type of the elements for a MList. e.g. INTEGER


toList

java.util.List<MListValue> toList()
Convert the List to a java.util.List.



RESERVOIR Monitoring 0.6.4