Javolution 6.0.0 java
javolution.lang.Realtime Interface Reference

Classes

enum  Limit
 

Public Member Functions

boolean value () default true
 
Limit limit () default Limit.CONSTANT
 
String comment () default ""
 

Detailed Description

Indicates if an element has a bounded
worst-case execution time. The limit behavior of the execution time with the input size may be specified (if no limit specified the worst case execution time is assumed to be constant).

[code] public class Equalities { @Realtime(limit = UNKNOWN) public static final Equality<Object> STANDARD = new StandardComparatorImpl<Object>();

@Realtime(limit = CONSTANT) public static final Equality<Object> IDENTITY = new IdentityComparatorImpl<Object>();

@Realtime(limit = LINEAR) public static final Equality<Object> ARRAY = new ArrayComparatorImpl();

@Realtime(limit = LINEAR) public static final Equality<CharSequence> LEXICAL = new LexicalComparatorImpl(); }[/code]

Analysis tools / compilers may produce warnings if program elements use or override elements with incompatible real-time characteristics.

Note: For multi-cores systems, if a real-time element is Parallelizable but not mutex-free, response time even for high priority threads may be unbounded due to priority inversion. This is no longer the case when running on real-time VMs due to their support for priority inheritance.

Author
Jean-Marie Dautelle
Version
6.0, July 21, 2013
See also
Real-Time Computing

Definition at line 59 of file Realtime.java.

Member Function Documentation

◆ comment()

String javolution.lang.Realtime.comment ( )

Provides additional information (default

""

).

◆ limit()

Limit javolution.lang.Realtime.limit ( )

Returns the limit behavior for the worst-case execution time (default Limit#CONSTANT).

◆ value()

boolean javolution.lang.Realtime.value ( )

Indicates if this element has a bounded worst-case execution time (default

true

).


The documentation for this interface was generated from the following file: