Basic Concepts > Layout Parameters in IlvGraphLayout > Allowed Time
 
Allowed Time
Several layout algorithms can be designed to stop computation when a user-defined time specification is exceeded. This may be done for different reasons: as a security measure to avoid a long computation time on very large graphs or as an upper limit for algorithms that iteratively improve a current solution and have no other criteria to stop the computation.
Rogue Wave Views allows you to specify the allowed time:
void setAllowedTime(IlvRuntimeType time)
To obtain the current value, use the method:
IlvRuntimeType getAllowedTime() const
If you subclass IlvGraphLayout, use the following call to know whether the specified time was exceeded:
IlBoolean isLayoutTimeElapsed() const
The time is in seconds. The default value is 32.0 seconds.
To indicate whether a subclass of IlvGraphLayout supports this mechanism, the following method is provided:
IlBoolean supportsAllowedTime() const
The default implementation returns IlFalse. A subclass can override this method to return IlTrue to indicate that this mechanism is supported.

Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.