Class CheckpointState


  • public class CheckpointState
    extends Object
    Keep information about mapping labels known at checkpoint step. CheckpointState represents state at a given Checkpoint. Model-wide state that records states for all checkpoints of the given model is accessible though ModelCheckpoints
    Since:
    3.3
    • Method Detail

      • getCheckpointModel

        public SModel getCheckpointModel()
      • getCheckpoint

        public CheckpointIdentity getCheckpoint()
        Returns:
        identity of a checkpoint for the model kept in this state.
      • getOriginCheckpoint

        @Nullable
        public CheckpointIdentity getOriginCheckpoint()
        Returns:
        identity of a checkpoint model that served as an input to get this state's checkpoint model, or null if there were no checkpoints during transformation prior to state's checkpoint (i.e. original model served as an input)
      • getCopiedOutput

        @Nullable
        public SNode getCopiedOutput​(SNode input)
        Parameters:
        input - reference target that generally belongs to a preceding checkpoints (not necessarily immediate origin CP, though). In case model of input node is separated from CP of this state object by few other CPs, it's caller responsibility to walk them backwards. IMPORTANT: it's assumed this CP state is of the input node's model, i.e. crossModelEnv.getState(input.getModel()).find(==getCheckpoint())
        Returns:
        null if there's no node in this CP that records given node as it's origin.