fcmodeler.jsomap
Class CycleWGData

java.lang.Object
  |
  +--fcmodeler.jsomap.CycleWGData
All Implemented Interfaces:
jsomap.data.Data, WGData

public class CycleWGData
extends java.lang.Object
implements WGData

Version:
 
Author:
default

Constructor Summary
CycleWGData(java.util.Collection cycles)
          Creates new BasicWGData
 
Method Summary
 int count()
          Returns the number of patterns being stored in this data object.
 jsomap.data.Pattern get(int index)
          Returns the pattern at the specified position.
 WeightedGraph getWG(int index)
           
 void set(int index, jsomap.data.Pattern pattern)
          Sets the pattern at the specified index to the specified pattern (optional operation).
 void setWG(int index, WeightedGraph graph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CycleWGData

public CycleWGData(java.util.Collection cycles)
Creates new BasicWGData
Method Detail

count

public int count()
Returns the number of patterns being stored in this data object.
Specified by:
count in interface jsomap.data.Data
Returns:
the number of patterns in this data object.

get

public jsomap.data.Pattern get(int index)
Returns the pattern at the specified position.
Specified by:
get in interface jsomap.data.Data
Parameters:
index - the index of the desired pattern.
Returns:
the pattern indexed by index.
Throws:
java.lang.IndexOutOfBoundsException - if index is out of range.

getWG

public WeightedGraph getWG(int index)
Specified by:
getWG in interface WGData

set

public void set(int index,
                jsomap.data.Pattern pattern)
Sets the pattern at the specified index to the specified pattern (optional operation).
Specified by:
set in interface jsomap.data.Data
Parameters:
index - the index of the pattern.
point - the new pattern.
Throws:
NullPointerException - if pattern is null.
java.lang.IndexOutOfBoundsException - if index is out of range.
UnsupportedOperationException - if this set method is not supported by this data object.
java.lang.IllegalArgumentException - if the specified pattern cannot be added to this data object.

setWG

public void setWG(int index,
                  WeightedGraph graph)
Specified by:
setWG in interface WGData