public class ResilienceEvent
extends SimEvent
Provides a set of events to be returned by resilience event generators. These events are:
Important: Generators only can generate events of type 'SRG', while provisioning algorithms receive single 'node' or 'link' events, corresponding to the network elements within the SRG.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResilienceEvent.EventType
Type of event.
|
| Constructor and Description |
|---|
ResilienceEvent(double eventTime,
int id,
ResilienceEvent.EventType type)
Constructor to define failure/reparation events.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
ResilienceEvent.EventType |
getEventType()
Returns the event type.
|
int |
getId()
Returns the identifier of the element referenced by the event (SRG, node or link).
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns a
String representation of the object. |
public ResilienceEvent(double eventTime,
int id,
ResilienceEvent.EventType type)
Constructor to define failure/reparation events.
Important: Users only can generate SRG events in the event generator, while receive node or link ones in the provisioning algorithm
eventTime - Event timeid - Element identifier (SRG, node or link)type - Event typepublic int getId()
public ResilienceEvent.EventType getEventType()
public String toString()
String representation of the object.String representation of the objectpublic boolean equals(Object o)
o - Reference object with which to comparetrue if this object is the same as the o argument; false otherwisepublic int hashCode()
HashMap.