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 class
InterfaceImpl.eGender
Enumeration for the gender of an interface.static class
InterfaceImpl.eIfCategory
Enumeration 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.eGender
getGender()
String
getGid()
InterfaceImpl.eIfCategory
getIfCategory()
int
getiOccurrence_max()
int
getiOccurrence_min()
static String
getOppositeStdID(String stdId)
Creates opposite or counter part for a StdIdSet<String>
getPurposes()
String
getStdCode()
static String
getStdCodeFromStdID(String stdId)
Gets the standard code from generated StdIdboolean
isBaseInterface()
static String
makeStdID(String stdCode, InterfaceImpl.eGender gender)
Generates StdId as combination of standard code and interface gender.void
setBaseInterface(boolean baseInterface)
void
setGender(InterfaceImpl.eGender gender)
void
setIfCategory(InterfaceImpl.eIfCategory ifCategory)
void
setiOccurrence_max(int iOccurrence_max)
void
setiOccurrence_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
-
-