Package eu.simuline.relana.model
Class SInstance
- java.lang.Object
-
- eu.simuline.relana.model.SInstance
-
public final class SInstance extends Object
Represents the instance of anSClass
. Created: Thu Apr 14 22:51:12 2005- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) SInstance
add(Deficiency def)
Returns theSInstance
arising from this one by removingdef
in a way that means thatdef
occurs.boolean
equals(Object obj)
ProbDistr
getDistr()
Formula
getFormula()
Set<Deficiency>
getMin()
(package private) String
getName()
Type
getType()
int
hashCode()
(package private) SInstance
remove(Deficiency def)
Returns theSInstance
arising from this one by removingdef
in a way that means thatdef
does not occur.void
setFormula(Formula form)
(package private) SInstance
substitute(SInstance serv, Formula form)
String
toString()
-
-
-
Method Detail
-
getName
String getName()
-
setFormula
public void setFormula(Formula form)
-
getType
public Type getType()
-
getDistr
public ProbDistr getDistr()
-
getFormula
public Formula getFormula()
-
getMin
public Set<Deficiency> getMin()
-
remove
SInstance remove(Deficiency def)
Returns theSInstance
arising from this one by removingdef
in a way that means thatdef
does not occur. This means that all deficiencies abovedef
are removed as well. CAUTION: This may returnnull
.- Parameters:
def
- aDeficiency
minimal within the type of this effect. **** is this unique or not? ****- Returns:
- the
SInstance
arising from this one by assuming thatdef
does not occur for this effect. Note that ifdef
is minimal within the type of this effect, the resulting type is empty. Since this is not allowed forSInstance
s, this method must returnnull
.
-
add
SInstance add(Deficiency def)
Returns theSInstance
arising from this one by removingdef
in a way that means thatdef
occurs.- Parameters:
def
- aDeficiency
minimal within the type of this effect. **** is this unique or not? ****- Returns:
- the
SInstance
arising from this one by assuming thatdef
does occurs for this effect.
-
-