galatea.glider
Class Event

java.lang.Object
  extended bygalatea.glider.Event

public final class Event
extends java.lang.Object

Class Event definition.
This is the base class for events in Galatea.
-----
Clase básica para el manejo de eventos en Galatea.

Version:
3 10/06/00
Author:
Mayerlin Uzcátegui

Constructor Summary
Event(Node n, double ta)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Get Method.
 Node getNode()
          Get Method.
 double getTa()
          Get Method.
 java.lang.String toString()
          Visual Method.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event(Node n,
             double ta)
Constructor. It's creates an instance of node type event.
-----
Constructor. Crea un nuevo evento tipo nodo.

Parameters:
n - Node. Event's node.
-----
n - Node. Nodo asociado al evento.

ta - double. Activation time.
-----
ta - double. Tiempo de activación.
Method Detail

equals

public boolean equals(java.lang.Object o)
Get Method. Partial Order betwen elements.
-----
Método de Consulta. Orden parcial entre eventos.

Parameters:
o - Object. Object to compare.
-----
o - Object. Objeto a comparar.
Returns:
boolean
true this.ta <= o.ta

getNode

public Node getNode()
Get Method. Node.
-----
Método de Consulta. Nodo.
Returns:
Node

getTa

public double getTa()
Get Method. Activation time.
-----
Método de Consulta. Tiempo de activación.

Returns:
double. Activation time.
-----
double. Tiempo de activación del evento.

toString

public java.lang.String toString()
Visual Method. Event.
-----
Visualización del objeto Event.

Returns:
String. Event in String format.
-----
String. El evento como una cadena.