public class ActivityMatrix extends Object implements Iterable<ActivityVector>
Constructor and Description |
---|
ActivityMatrix() |
Modifier and Type | Method and Description |
---|---|
void |
add(ActivityVector activityVector)
Adds the given ActivityVector.
|
void |
dump(SongContext songContext,
String title,
Level level)
Dumps the activity vectors as an activity matrix using the given log level.
|
ActivityVector |
get(String name)
Looks up and returns the ActivityVector with the given name.
|
Map<String,Integer> |
getIndexMap()
Returns a map that maps from ActivityVector name to its iterator index.
|
Iterator<ActivityVector> |
iterator()
Provides an iterator that iterates over all ActivityVectors of this ActivityMatrix in the order they have been added.
|
int |
size()
Returns the number of ActivityVectors.
|
public void add(ActivityVector activityVector)
activityVector
- the ActivityVectorpublic ActivityVector get(String name)
name
- the namepublic Iterator<ActivityVector> iterator()
iterator
in interface Iterable<ActivityVector>
public int size()
public Map<String,Integer> getIndexMap()
public void dump(SongContext songContext, String title, Level level)
songContext
- the song contexttitle
- the titlelevel
- the log level to use