Class InterfaceImpl
- java.lang.Object
-
- fi.tut.mei.matchmaking.process.interfacemm.model.InterfaceImpl
-
public class InterfaceImpl extends Object
- Author:
- Niko Siltala
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterfaceImpl.eGenderEnumeration for the gender of an interface.static classInterfaceImpl.eIfCategoryEnumeration for the Interface category of an interface.
-
Constructor Summary
Constructors Constructor Description InterfaceImpl(String gid, String stdCode)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InterfaceImpl.eGendergetGender()StringgetGid()InterfaceImpl.eIfCategorygetIfCategory()intgetiOccurrence_max()intgetiOccurrence_min()static StringgetOppositeStdID(String stdId)Creates opposite or counter part for a StdIdSet<String>getPurposes()StringgetStdCode()static StringgetStdCodeFromStdID(String stdId)Gets the standard code from generated StdIdbooleanisBaseInterface()static StringmakeStdID(String stdCode, InterfaceImpl.eGender gender)Generates StdId as combination of standard code and interface gender.voidsetBaseInterface(boolean baseInterface)voidsetGender(InterfaceImpl.eGender gender)voidsetIfCategory(InterfaceImpl.eIfCategory ifCategory)voidsetiOccurrence_max(int iOccurrence_max)voidsetiOccurrence_min(int iOccurrence_min)
-
-
-
Method Detail
-
makeStdID
public static String makeStdID(String stdCode, InterfaceImpl.eGender gender)
Generates StdId as combination of standard code and interface gender. This can be used as key for interface implementation.- Parameters:
stdCode- full code of standardgender- gender- Returns:
- generated StdId
-
getStdCodeFromStdID
public static String getStdCodeFromStdID(String stdId)
Gets the standard code from generated StdId- Parameters:
stdId-- Returns:
- full code of standard
-
getOppositeStdID
public static String getOppositeStdID(String stdId)
Creates opposite or counter part for a StdId- Parameters:
stdId- StdId- Returns:
- fitting counter part of stdId
-
getGender
public InterfaceImpl.eGender getGender()
- Returns:
- the gender
-
setGender
public void setGender(InterfaceImpl.eGender gender)
- Parameters:
gender- the gender to set
-
getIfCategory
public InterfaceImpl.eIfCategory getIfCategory()
- Returns:
- the ifCategory
-
setIfCategory
public void setIfCategory(InterfaceImpl.eIfCategory ifCategory)
- Parameters:
ifCategory- the ifCategory to set
-
getiOccurrence_min
public int getiOccurrence_min()
- Returns:
- the iOccurrence_min
-
setiOccurrence_min
public void setiOccurrence_min(int iOccurrence_min)
- Parameters:
iOccurrence_min- the iOccurrence_min to set
-
getiOccurrence_max
public int getiOccurrence_max()
- Returns:
- the iOccurrence_max
-
setiOccurrence_max
public void setiOccurrence_max(int iOccurrence_max)
- Parameters:
iOccurrence_max- the iOccurrence_max to set
-
isBaseInterface
public boolean isBaseInterface()
- Returns:
- the baseInterface
-
setBaseInterface
public void setBaseInterface(boolean baseInterface)
- Parameters:
baseInterface- the baseInterface to set
-
getGid
public String getGid()
- Returns:
- the gid
-
getStdCode
public String getStdCode()
- Returns:
- the stdCode
-
-