Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
IInputItem consumerThatIsAsking;
consumerThatIsAsking.TimeSet.Times[0] = requiredTime;
while (!providingOutputItem.IsAvailable(consumerThatIsAsking)) {
    providingOutputItem.Component.Update();
}
values = providingOutputItem.Values;

Related issue (question) : The code above is actually representing the original 1.4 GetValues() call. So it might be wise, to put emphasis again on the still working 'pull approach', introduce this getValues() call:

Code Block
java
java
values = providingOutputItem.GetValues(consumerThatIsAsking);

This is considered to be a useful extension. It is a convenient method, and it explitly shows the pull approach, so we will add it (thumbs up).

(It might even be considered to move the method to the LinkableComponent (see (See also Gena's suggestion on loop vs. pull later on this page).

...