Class EventSequence
- java.lang.Object
-
- edu.gsu.cs.dmlab.solgrind.base.types.event.EventSequence
-
- All Implemented Interfaces:
Comparable<EventSequence>
public class EventSequence extends Object implements Comparable<EventSequence>
- Author:
- Data Mining Lab, Georgia State University
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<EventSequence>
piComparator
-
Constructor Summary
Constructors Constructor Description EventSequence()
EventSequence(EventType e)
EventSequence(ArrayList<EventType> eventTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSequence
appendEventType(EventType type)
int
compareTo(EventSequence o)
static EventSequence
connect(EventSequence fs1, EventSequence fs2)
Always check whether those two matches or not!!!boolean
equals(Object obj)
ArrayList<EventType>
getEventsList()
EventSequence
getFolloweeSubsequence()
EventSequence
getFollowerSubsequence()
EventSequence
getHeadSubsequence(int k)
int
getLength()
double
getPiValue()
EventType
getSequenceHead()
EventType
getSequenceTail()
String
getTableName()
EventSequence
getTailSubsequence(int k)
EventType
getType(int index)
String
getTypeName(int index)
int
hashCode()
void
insert(EventType type)
boolean
isValid()
static boolean
matches(EventSequence s1, EventSequence s2)
void
setPiValue(double piValue)
String
toString()
-
-
-
Field Detail
-
piComparator
public static final Comparator<EventSequence> piComparator
-
-
Method Detail
-
getType
public EventType getType(int index)
-
getTypeName
public String getTypeName(int index)
-
getSequenceHead
public EventType getSequenceHead()
-
matches
public static boolean matches(EventSequence s1, EventSequence s2)
-
connect
public static EventSequence connect(EventSequence fs1, EventSequence fs2)
Always check whether those two matches or not!!!- Parameters:
fs1
-fs2
-- Returns:
- connected sequence from fs1 and fs2
-
getLength
public int getLength()
-
getSequenceTail
public EventType getSequenceTail()
-
appendEventType
public EventSequence appendEventType(EventType type)
-
insert
public void insert(EventType type)
-
isValid
public boolean isValid()
-
getTableName
public String getTableName()
-
getFolloweeSubsequence
public EventSequence getFolloweeSubsequence()
-
getTailSubsequence
public EventSequence getTailSubsequence(int k)
-
getHeadSubsequence
public EventSequence getHeadSubsequence(int k)
-
getFollowerSubsequence
public EventSequence getFollowerSubsequence()
-
getPiValue
public double getPiValue()
-
setPiValue
public void setPiValue(double piValue)
-
compareTo
public int compareTo(EventSequence o)
- Specified by:
compareTo
in interfaceComparable<EventSequence>
-
-