jmarkov.basic
Interface PropertiesElement

All Superinterfaces:
JMarkovElement
All Known Implementing Classes:
PropertiesAction, PropertiesEvent, PropertiesState

public interface PropertiesElement
extends JMarkovElement

This interface is a wrapper for elements (States, Actions Events) that can be represented by an arry of integers. Known implentations include PropertiesState, Propertiesevent and PropertiesAction. Basic methods are provided to access the internal array.

Author:
German Riano. Universidad de los Andes. (C) 2006
See Also:
PropertiesState, PropertiesAction, PropertiesEvent

Method Summary
 PropertiesElement clone()
           
 int getNumProps()
          Returns the number of properties in the array that characterize this element.
 int[] getProperties()
          Gets the array of properties.
 int getProperty(int index)
          Gets the value of this property at this index.
 
Methods inherited from interface jmarkov.basic.JMarkovElement
description, equals, label, toString
 

Method Detail

getNumProps

int getNumProps()
Returns the number of properties in the array that characterize this element.

Returns:
The number of properties.

getProperties

int[] getProperties()
Gets the array of properties.

Returns:
Returns the properties array.

getProperty

int getProperty(int index)
Gets the value of this property at this index.

Parameters:
index -
Returns:
the property at the given index

clone

PropertiesElement clone()