|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbe.eve.factories.smefactory.AbstractSMEFactory
org.dbe.eve.factories.smefactory.SMEFactory
public class SMEFactory
implements the factory design pattern for SME-creation and includes an OverallServicePool with random services
| Field Summary | |
|---|---|
private static SMEFactory |
instance
|
private java.util.Vector |
Prototypes
|
private OverallServicePool |
SPool
|
| Fields inherited from class org.dbe.eve.factories.smefactory.AbstractSMEFactory |
|---|
logger, mt |
| Constructor Summary | |
|---|---|
private |
SMEFactory(EvEModel eVeModel)
|
| Method Summary | |
|---|---|
Prototype |
addPrototype(java.lang.String piCPath,
java.lang.String name,
int nUmber,
int typology,
int usage,
int dimension,
int innovation,
int socialcapital,
int strategy,
int offering,
int demanding)
creates a prototype with the settings from the GUI and adds it to the Prototype Container |
SME |
createSME(EvEModel model,
int groupid,
int prototypid)
creates a new SME using parameters from the GUI |
static SMEFactory |
getInstofSMEFact(EvEModel eVemodel)
contructs a SMEFactory or returns an instance of it |
Prototype |
getNextPrototype()
gets the next prototype from the prototype-container based on a random selection which takes into account the ratio of number of SMEs per prototype |
Prototype |
getPrototype(int prototypeID)
get a prototype from the prototypes container |
java.util.Vector |
getPrototypes()
gets the vector with prototypes just as they where created |
void |
removePrototype(Prototype p)
|
| Methods inherited from class org.dbe.eve.factories.smefactory.AbstractSMEFactory |
|---|
getSMEFactory, isSmeFactoryVar1, setSmeFactoryVar1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static SMEFactory instance
private OverallServicePool SPool
private java.util.Vector Prototypes
| Constructor Detail |
|---|
private SMEFactory(EvEModel eVeModel)
| Method Detail |
|---|
public static SMEFactory getInstofSMEFact(EvEModel eVemodel)
eVemodel - instance of an EvEModel
public SME createSME(EvEModel model,
int groupid,
int prototypid)
createSME in class AbstractSMEFactorymodel - - instance of an EvEModelgroupid - - group id to which the SME should belong, must be smaller than
0 if the group schould be chosen randomlyprototypid - - indicates which prototype should be used for the creation of
the SME, must be smaller than 0 if the prototype should be
chosen randomly
public Prototype addPrototype(java.lang.String piCPath,
java.lang.String name,
int nUmber,
int typology,
int usage,
int dimension,
int innovation,
int socialcapital,
int strategy,
int offering,
int demanding)
piCPath - picture pathname - name of prototypenUmber - number of SMEs of this prototypenumOfservices - typology - usage - dimension - innovation - socialcapital - strategy - offering - demanding - public void removePrototype(Prototype p)
public java.util.Vector getPrototypes()
public Prototype getNextPrototype()
public Prototype getPrototype(int prototypeID)
prototypeID - id of the prototype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||