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

com.meliorbis.economics.infrastructure.simulation.PeriodAggregateState Maven / Gradle / Ivy

Go to download

A library for solving economic models, particularly macroeconomic models with heterogeneous agents who have model-consistent expectations

There is a newer version: 1.1
Show newest version
package com.meliorbis.economics.infrastructure.simulation;

import com.meliorbis.numerics.generic.MultiDimensionalArray;
import com.meliorbis.numerics.generic.primitives.DoubleArray;

/**
 * Holds the aggregate state of a single period
 *
 * @param  The type of the shocks
 */
public class PeriodAggregateState
{
    private MultiDimensionalArray _shocks;

    private DoubleArray _states;
    private DoubleArray _controls;

    public PeriodAggregateState(){}

    public PeriodAggregateState(
    		MultiDimensionalArray shocks_,
            DoubleArray states_,
            DoubleArray controls_)
    {
        _shocks = shocks_;
        _states = states_;
        _controls = controls_;
    }
    public DoubleArray getControls()
    {
        return _controls;
    }

    public void setControls(DoubleArray controls_)
    {
        _controls = controls_;
    }

    public MultiDimensionalArray getShocks()
    {
        return _shocks;
    }

    public DoubleArray getStates()
    {
        return _states;
    }

    public void setStates(DoubleArray states_)
    {
        _states = states_;
    }

    public void setShocks(MultiDimensionalArray shocks_)
    {
        _shocks = shocks_;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy