Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Incoherence between SignalBase::setReady and needUpdate #49

@jmirabel

Description

@jmirabel

SignalBase defines the following methods/

  const bool &getReady() const { return ready; }
  virtual bool needUpdate(const Time &) const { return ready; }
  inline void setReady(const bool sready = true) { ready = sready; }

It is very misleading that signal.getReady() == signal.needUpdate(). From the code, it seems this is only use in SignalTimeDependent and attribute ready is true when the signal is NOT up to date

Metadata

Metadata

Labels

SimplificationMake the rational simpler and the code easier to read

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions