public abstract class RepeatAction
extends java.lang.Object
implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOUR
Interval value HOUR
|
static java.lang.String |
MINUTE
Interval value MINUTE
|
static java.lang.String |
MSEC
Name of this Object
|
static java.lang.String |
SECOND
Interval value SECOND
|
Constructor and Description |
---|
RepeatAction() |
RepeatAction(edu.stanford.smi.protege.model.Instance instance)
Creates a new instance of ProtegeRepeatAction
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Timer events handler
|
void |
fillFromProtege(edu.stanford.smi.protege.model.Instance instance,
edu.stanford.smi.protege.model.KnowledgeBase kb)
Take information from Protege Instance
and put it to RepeatAction object
|
edu.stanford.smi.protege.model.Instance |
getInstance() |
double |
getLifetime() |
java.lang.String |
getName() |
double |
getPeriod() |
int |
getPgid() |
void |
removeObjects() |
void |
repeat(double elapsed)
Method that implement repeating action
|
void |
setInstance(edu.stanford.smi.protege.model.Instance instance) |
void |
setLifetime(double lifetime) |
void |
setName(java.lang.String name) |
void |
setPeriod(double period) |
void |
setPgid(int pgid) |
void |
start(javax.swing.Timer timer)
Starts execution of repeating action
|
void |
stop(javax.swing.Timer timer)
Stops the execution of repeating action
|
public static java.lang.String MSEC
public static java.lang.String SECOND
public static java.lang.String MINUTE
public static java.lang.String HOUR
public RepeatAction()
public RepeatAction(edu.stanford.smi.protege.model.Instance instance)
instance
- -public void repeat(double elapsed)
elapsed
- elapsed time between calls (hours)public void start(javax.swing.Timer timer)
timer
- -public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
ae
- - Event objectpublic void stop(javax.swing.Timer timer)
timer
- -public void removeObjects()
public void fillFromProtege(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.KnowledgeBase kb)
instance
- Instance of subclass of Protege RepeatAction classkb
- Knowledge Basepublic double getPeriod()
public void setPeriod(double period)
public java.lang.String getName()
public void setName(java.lang.String name)
public double getLifetime()
public void setLifetime(double lifetime)
public edu.stanford.smi.protege.model.Instance getInstance()
public void setInstance(edu.stanford.smi.protege.model.Instance instance)
public int getPgid()
public void setPgid(int pgid)