|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.runtime.SystemEvent
public class SystemEvent
A system event indicates that something happend.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jadex.model.ISystemEventTypes |
---|
ISystemEventTypes.Subtypes |
Field Summary |
---|
Constructor Summary | |
---|---|
SystemEvent()
Bean constructor. |
|
SystemEvent(String type,
Object source)
Create a new change event. |
|
SystemEvent(String type,
Object source,
Object value)
Create a new change event. |
|
SystemEvent(String type,
Object source,
Object value,
int index)
Create a new change event. |
Method Summary | |
---|---|
Object |
clone()
Create a shallow copy of this system event. |
boolean |
equals(Object o)
Test if two system events are equal. |
String |
getCause()
Return the cause of this event |
int |
getIndex()
Get the index of this event (if any). |
Object |
getSource()
Get the event source. |
String |
getType()
Get the type. |
Object |
getValue()
Get the value of this event (if any). |
int |
hashCode()
Get the elements hashcode. |
boolean |
instanceOf(String type)
Check if this event type is a (sub) type of the given event type. |
boolean |
isChangeRelevant()
Does this event denote a system change, potentially relevant for conditions? |
boolean |
isDerived()
Test if the system event is derived. |
boolean |
isInit()
Test if init event. |
void |
setCause(String cause)
The cause of this event |
void |
setDerived(boolean derived)
Set the derived state. |
void |
setIndex(int index)
Get the index of this event (if any). |
void |
setInit(boolean init)
Set init event state. |
void |
setSource(Object source)
Set the event source. |
void |
setType(String type)
Set the type. |
void |
setValue(Object value)
Set the value of this event (if any). |
String |
toString()
Get the string representation. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SystemEvent()
public SystemEvent(String type, Object source)
type
- The system event type.source
- The event source.public SystemEvent(String type, Object source, Object value)
type
- The system event type.source
- The event source.value
- The value of the element.public SystemEvent(String type, Object source, Object value, int index)
type
- The system event type.source
- The event source.value
- The value at the specified index.index
- The index where the change occurred.Method Detail |
---|
public String getType()
public void setType(String type)
public boolean isChangeRelevant()
public Object getSource()
public void setSource(Object source)
public Object getValue()
public void setValue(Object value)
public int getIndex()
public void setIndex(int index)
public void setCause(String cause)
cause
- The cause.public String getCause()
public boolean isDerived()
public void setDerived(boolean derived)
derived
- The derived state.public boolean isInit()
public void setInit(boolean init)
init
- The init event state.public boolean instanceOf(String type)
type
- The system event type that may be a subtype.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Object clone()
clone
in class Object
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.