Documentation of 'org.jquantlib.cashflow.Event' Java class
Event
org.jquantlib.cashflow

Class Event

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      void accept(PolymorphicVisitor pv)
      This method is intended to extend the semantics of method Visitable.accept(Visitor)
      void addObserver(Observer observer)
      Attaches a observer to the Observable.
      int countObservers()
      Counts how many Observers were attached to this class.
      abstract Date date()
      Keeps the date at which the event occurs
      void deleteObserver(Observer observer)
      Detaches a previously attached observer to the observable.
      void deleteObservers()
      Detaches all previously attached observer to the observable.
      java.util.List<Observer> getObservers()
      Returns list of observers registered with the Observable.
      boolean hasOccurred(Date d)
      Returns true if an event has already occurred before a date
      boolean hasOccurred(Date d, boolean includeToday)
      Returns true if an event has already occurred before a date where it is explicitly defined whether the current date must considered.
      void notifyObservers()
      Notifies all attached observers about changes in the observable.
      void notifyObservers(java.lang.Object arg)
      Notifies all attached observers about changes in the observable.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • date

        public abstract Date date()
        Keeps the date at which the event occurs
      • hasOccurred

        public boolean hasOccurred(Date d)
        Returns true if an event has already occurred before a date

        If Settings.isTodaysPayments() is true, then a payment event has not occurred if the input date is the same as the event date, and so includeToday should be defaulted to true.

        This should be the only place in the code that is affected directly by Settings.isTodaysPayments()

      • hasOccurred

        public boolean hasOccurred(Date d,
                                   boolean includeToday)
        Returns true if an event has already occurred before a date where it is explicitly defined whether the current date must considered.
        Parameters:
        d - is a Date
        Returns:
        true if an event has already occurred before a date
      • addObserver

        public void addObserver(Observer observer)
        Description copied from interface: Observable
        Attaches a observer to the Observable. After attachment the observer gets informed about changes in the Observable.
        Specified by:
        addObserver in interface Observable
        Parameters:
        observer - The observer to attach to the observable
      • countObservers

        public int countObservers()
        Description copied from interface: Observable
        Counts how many Observers were attached to this class.
        Specified by:
        countObservers in interface Observable
        Returns:
        the number of Observers
        See Also:
        Observer
      • deleteObserver

        public void deleteObserver(Observer observer)
        Description copied from interface: Observable
        Detaches a previously attached observer to the observable. After detachment the observer does no longer receive change notifications from the observable.
        Specified by:
        deleteObserver in interface Observable
        Parameters:
        observer - The observer to detach from the observable
      • notifyObservers

        public void notifyObservers()
        Description copied from interface: Observable
        Notifies all attached observers about changes in the observable.
        Specified by:
        notifyObservers in interface Observable
      • notifyObservers

        public void notifyObservers(java.lang.Object arg)
        Description copied from interface: Observable
        Notifies all attached observers about changes in the observable.
        Specified by:
        notifyObservers in interface Observable
        Parameters:
        arg - an arbitrary Object to be passed to the Observer
      • deleteObservers

        public void deleteObservers()
        Description copied from interface: Observable
        Detaches all previously attached observer to the observable. After detachment observers do not longer receive change notifications from the observable.
        Specified by:
        deleteObservers in interface Observable
      • getObservers

        public java.util.List<Observer> getObservers()
        Description copied from interface: Observable
        Returns list of observers registered with the Observable. List returned is unmodifiable list.
        Specified by:
        getObservers in interface Observable
        Returns:
        list of observers

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.