public abstract class Activity extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
id
Unique ID of the activity.
|
static int |
INT |
static int |
INT1 |
Modifier | Constructor and Description |
---|---|
protected |
Activity()
Creates a new
Activity instance. |
Modifier and Type | Method and Description |
---|---|
String |
getID()
Get the activity's ID.
|
void |
log(Incident incident)
Log the given incident.
|
protected abstract void |
recordIncident(Incident incident)
Record the given incident.
|
void |
setID(String id)
Change the activity's ID to the given value.
|
void |
stop()
Stop this activity.
|
public static final int INT
public static final int INT1
protected String id
protected Activity()
Activity
instance.public void setID(String id)
id
- New ID.public void stop()
ActivityStopped
incident. No
further incidents may be logged after calling this method.public final void log(Incident incident)
incident
- The incident to log.Copyright © 1999–2017 Apache OODT. All rights reserved.