org.xmcda.value.PiecewiseLinearFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmcda Show documentation
Show all versions of xmcda Show documentation
XMCDA Java Reference Library
package org.xmcda.value;
import java.util.ArrayList;
public class PiecewiseLinearFunction
extends ArrayList>
implements Function, MembershipFunction
{
private static final long serialVersionUID = 1L;
// CommonAttributes (start)
/** The id attribute allows to identify the underlying piece of data by a program. */
private String id;
/** The name attribute contains the human readable name of the object or concept. */
private String name;
/**
* The mcdaConcept attribute allows to specify to what mcda concept a tag is related. It is used by an algorithm to
* make choices which will have an influence on the output. The documentation of the program should therefore
* specify, if necessary, what mcdaConcept should be used for the input data. In particular, if an algorithm
* requires, among other things, twice the same input tag, they can be differenciated by the mcdaConcept (this is
* even mandatory if they are present in the same file, but should be optional if the two tags can be in different
* input files, or originate from two different programs). The algorithm should therefore not be too strict on these
* mcdaConcepts, as this will reduce the compatibility between the various programs.
*/
private String mcdaConcept;
public String id()
{
return id;
}
public void setId(String id)
{
this.id = id;
}
public String name()
{
return name;
}
public String mcdaConcept()
{
return mcdaConcept;
}
public void setName(String name)
{
this.name = name;
}
public void setMcdaConcept(String mcdaConcept)
{
this.mcdaConcept = mcdaConcept;
}
// CommonAttributes (end)
}