All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rcsb.strucmotif.update.Context Maven / Gradle / Ivy

There is a newer version: 0.19.8
Show newest version
package org.rcsb.strucmotif.update;

import org.rcsb.strucmotif.domain.motif.ResiduePairDescriptor;
import org.rcsb.strucmotif.domain.motif.ResiduePairIdentifier;
import org.rcsb.strucmotif.domain.structure.StructureInformation;

import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * Captures global state of the update process.
 */
public class Context {
    final Set known;
    final Set processed;
    String partitionContext;
    Map>> buffer;
    AtomicInteger structureCounter;

    /**
     * Construct a new update context.
     * @param known set of registered structures
     */
    public Context(Set known) {
        this.known = known;
        this.processed = Collections.synchronizedSet(new HashSet<>());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy