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

sim.app.celegans.Synapse Maven / Gradle / Ivy

Go to download

MASON is a fast discrete-event multiagent simulation library core in Java, designed to be the foundation for large custom-purpose Java simulations, and also to provide more than enough functionality for many lightweight simulation needs. MASON contains both a model library and an optional suite of visualization tools in 2D and 3D.

The newest version!
/*
  Copyright 2006 by Sean Luke and George Mason University
  Licensed under the Academic Free License version 3.0
  See the file "LICENSE" for more information
*/

package sim.app.celegans;


/** Synapse is a simple synapse connection between two Cells.  Cells have a "from" (outgoing)
    Cell, and a "to" (incoming) Cell.  Synapses also have two types, type_chemical for chemical
    synapses and type_gap for gap junctions. These two types are closely correlated with the
    values returned by DisplaySynapses.java, so be careful when adding new types or changing
    their inherent values. Synapses also have a number, indicating the number of synapses
    from the one cell to the other (all such synapses are represented by the same Synapse
    object). */

public class Synapse extends Object
    {
    private static final long serialVersionUID = 1;

    static int type_chemical=0;
    static int type_gap=1;
    public Cell from;
    public Cell to;
    public int type;
    public int number=1;
    public String toString()
        {
        String s = (type == type_chemical ? "chemical" : "gap");
        if (number > 1) s = s + " (" + number + ")";
        return s;
        }
    }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy