import { InvokeHistory } from "../slave/InvokeHistory";
import { Invoke } from "../../protocol/invoke/Invoke";
/**
* History of an {@link Invoke} message.
*
* The {@link PRInvokeHistory} is a class archiving history log of an {@link Invoke} message which requests the
* *parallel process*, created whenever {@link ParallelSystemArray.sendSegmentData} or
* {@link ParallelSystemArray.sendSegmentData} is called.
*
* When the *parallel process* has completed, then {@link complete complete()} is called and the *elapsed time* is
* determined. The elapsed time is utilized for computation of {@link ParallelSystem.getPerformance performance index}
* of each {@link ParallelSystem parallel slave system}.
*
*
*
*
*
* @handbook [Templates - Parallel System](https://github.com/samchon/framework/wiki/TypeScript-Templates-Parallel_System)
* @author Jeongho Nam
*/
export declare class PRInvokeHistory extends InvokeHistory {
/**
* @hidden
*/
private first;
/**
* @hidden
*/
private last;
/**
* Default Constructor.
*/
constructor();
/**
* Construct from an {@link Invoke} message.
*
* @param invoke An {@link Invoke} message requesting a *parallel process*.
*/
constructor(invoke: Invoke);
/**
* Get initial piece's index.
*
* Returns initial piece's index in the section of requested *parallel process*.
*
* @return The initial index.
*/
getFirst(): number;
/**
* Get final piece's index.
*
* Returns initial piece's index in the section of requested *parallel process*. The range used is
* [*first*, *last*), which contains all the pieces' indices between *first* and *last*, including the piece
* pointed by index *first*, but not the piece pointed by the index *last*.
*
* @return The final index.
*/
getLast(): number;
/**
* Compute number of allocated pieces.
*/
computeSize(): number;
}