public class Event extends MetaInfo
Constructor and Description |
---|
Event(RangedVariable variable)
Constructs an object with the specified variable and of any edge event type.
|
Event(RangedVariable variable,
EventType type)
Constructs an object with the specified variable and event type.
|
Modifier and Type | Method and Description |
---|---|
Event |
deepcopy()
Returns a deep copy of this object.
|
boolean |
equals(java.lang.Object o) |
RangedVariable |
getRangedVariable()
Returns event ranged variable.
|
EventType |
getType()
Returns event type.
|
int |
hashCode() |
boolean |
isCompatible(Event event)
Checks if this event is compatible with the specified one, that is, they aren't mutually
exclusive.
|
boolean |
isTriggeredBy(Event event)
Checks if this event is always triggered along with the specified one (for example, if this
event is any edge of some variable while other is positive edge of the same variable).
|
java.lang.String |
toString() |
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo, removeMetaInfo, removeMetaInfo
public Event(RangedVariable variable, EventType type)
variable
- variabletype
- event typejava.lang.NullPointerException
- when any of the arguments is null
.public Event(RangedVariable variable)
variable
- variablejava.lang.NullPointerException
- when argument is null
.public EventType getType()
public RangedVariable getRangedVariable()
public boolean isTriggeredBy(Event event)
event
- the event to be testedtrue
if this event is always triggered along with the specified one, otherwise
returns false
public boolean isCompatible(Event event)
event
- the event to be tested for compatibility with this onetrue
if the events are compatible, otherwise returns false
public Event deepcopy()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object