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

com.imsweb.algorithms.AlgorithmInput Maven / Gradle / Ivy

/*
 * Copyright (C) 2019 Information Management Services, Inc.
 */
package com.imsweb.algorithms;

import java.util.Map;

/**
 * Abstraction of the "input" that an algorithm needs to compute it's output.
 */
public class AlgorithmInput {

    // parameters (keyed by parameter ID)
    private Map _parameters;

    // input data (keyed by field IDs, there is a special field representing a list of tumors).
    private Map _patient;

    public Map getParameters() {
        return _parameters;
    }

    public Object getParameter(String paramId) {
        return _parameters == null ? null : _parameters.get(paramId);
    }

    public void setParameters(Map parameters) {
        _parameters = parameters;
    }

    public Map getPatient() {
        return _patient;
    }

    public void setPatient(Map patient) {
        _patient = patient;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy