|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.DefaultNode
uchicago.src.sim.network.DefaultDrawableNode
org.dbe.eve.simulator.SME
public class SME
Represents a SME
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uchicago.src.sim.network.DefaultNode |
|---|
uchicago.src.sim.network.DefaultNode.OrderedHashMap |
| Field Summary | |
|---|---|
private double |
actingProbability
|
private DemandedAndUsedServicePool |
demandedAndUsedServicePool
|
private double |
fitness
|
(package private) uchicago.src.sim.gui.RoundRectNetworkItem |
gUIItem
|
private LocalServicePool |
localServicePool
|
(package private) static org.apache.log4j.Logger |
logger
|
private int |
maxServicesOnDemand
|
private int |
maxServicesOnOffer
|
private int |
minServicesOnDemand
|
private int |
minServicesOnOffer
|
private EvEModel |
model
|
(package private) static MersenneTwister |
mt
|
private java.util.HashMap |
partnerSMEs
|
private java.lang.String |
PicPath
|
private Prototype |
prototype
|
private java.util.Vector<Service> |
ServicesOnOffer
|
private java.awt.Color |
sMEColor
|
private int |
sMEGroup
|
private int |
sMEiD
|
private java.awt.Color |
sMELabelColor
|
private java.lang.String |
sMEName
|
| Fields inherited from class uchicago.src.sim.network.DefaultDrawableNode |
|---|
item |
| Fields inherited from class uchicago.src.sim.network.DefaultNode |
|---|
inEdges, inMap, label, outEdges, outMap |
| Constructor Summary | |
|---|---|
SME(int newSMEiD,
int color,
int groupid,
int x,
int y)
|
|
SME(int newSMEiD,
java.lang.String sMEName,
int color,
int groupid)
|
|
SME(int newSMEiD,
java.lang.String sMEName,
int color,
int grouid,
Prototype p)
|
|
| Method Summary | |
|---|---|
NetworkEdge |
addNetworkEdgeToSME(SME targetSME,
int distanceSME,
float strength)
create network edge to other SME |
PartnerEdge |
addPartnerEdgeToSME(SME targetSME,
int distanceSME,
float strength)
create partner edge to other SME |
boolean |
addPartnerSME(SME newPartnerSME,
int interaction)
Adds an new Partner SME to the Hashmap of Partner SMEs and creates edge |
ProducerEdge |
addProducerEdgeToSME(SME targetSME,
int distanceSME,
float strength)
create producer edge to other SME |
void |
addServiceOnDemand(DemandedService serviceToAdd)
|
void |
addServiceOnOffer(Service serviceToAdd)
|
void |
addServicesOnOffer(java.util.Vector<Service> servicesToAdd)
|
void |
addServicesToServicePool(java.util.Vector<Service> newServices)
|
void |
addServiceToServicePool(Service newService)
Adds an Service to the local Service Pool |
boolean |
addServiceToUsedServices(Service ServiceToAdd,
DemandedService demService)
Adds an Service to the SMEs UsedService HashMap. |
boolean |
addServiceToUsedServices(Service ServiceToAdd,
DemandedService demService,
java.util.Vector migHistory)
Adds an Service to the SMEs UsedService HashMap. |
private void |
assignServices()
creates new LocalServicePool, DemandedAndUsedServicePool and fills all pools with services |
private void |
calcFitness()
calculates the Fitness of this SME and set the fitness of this SME to the calculated value. |
org.w3c.dom.Element |
getAsXmlElement(org.w3c.dom.Document xmldoc)
|
int |
getDegreeOfInteraction(SME PartnerSME)
Returns the number of usefull interactions between this SME and the Partner SME |
DemandedAndUsedServicePool |
getDemandedAndUsedServicePool()
Returns the DemandedAndUsedServicePool of this SME |
java.util.Vector |
getDemandedServices()
Returns the demanded Services as a Vector |
double |
getFitness()
Returns the Fitness of the SME |
int |
getMaxServicesOnDemand()
|
int |
getMaxServicesOnOffer()
|
int |
getMinServicesOnDemand()
|
int |
getMinServicesOnOffer()
|
EvEModel |
getModel()
returns the model |
private DemandedService |
getNextRequest()
Identifies the next request for the GA |
java.util.Vector |
getOfferedServices()
Returns an Vector with the services on offer |
java.util.HashMap |
getPartnerSMEs()
Returns the Hashmap of Partner SMEs |
Prototype |
getPrototype()
|
LocalServicePool |
getServicePool()
Returns the Service-Pool of this SME |
int |
getSMEGroup()
Returns the group number to which this service belongs to. |
int |
getSMEID()
Returns the ID of the SME |
java.lang.String |
getSMEName()
Returns the name of the SME |
java.util.Vector |
getUsedServices()
Returns a Vector which include all Services which are currently in use |
void |
increaseDegreeOfInteraction(SME PartnerSME)
If the Partner SME is already in the HashMap the Degree of interaction will be increased by one. |
void |
initWorld()
draw the SMES as ovals |
void |
initWorld(int x,
int y)
draw SME at a certain position |
void |
instanciateService(DemandedService request,
Individuum toInstantiate)
|
void |
newGA()
start GA for SME Note that OptimisationSupervisor now calls the UMDA implementation |
void |
onDisplayClick(java.awt.event.MouseEvent evt)
onClick auf den simulationsframe GUI |
boolean |
removeServiceFromServicePool(Service serviceToRemove)
Removes an Service from the ServicePool |
boolean |
removeServiceFromUsedServices(Service ServiceToRemove)
This Methode removes an Service from the UsedService HashMap. |
void |
selectService(DemandedService request,
java.util.ArrayList results)
|
private void |
setAttitudeDemanding()
maps Attitude Demanding to the SME |
private void |
setAttitudeOffering()
maps Attitude Offering to the SME |
private void |
setBusinessStrategy()
maps BusinessStrategy to the SME no influence to the simulation at the moment |
private void |
setDimension()
maps Dimension to the SME no influence to the simulation at the moment |
private void |
setFitness(double fitness)
Sets the Fitness of the SME |
private void |
setICTUsage()
maps ICTUsage to the SME |
private void |
setInnovation()
maps Innovation to the SME no influence to the simulation at the moment cross relation to ICT usage and effect on attitude in the DBE |
private void |
setParameters(int newSMEiD,
java.lang.String smeName,
int color,
int groupid)
Is a help method for the constructors to set parameters |
void |
setPrototype(Prototype prototype)
|
private void |
setSMEColor(int color)
Sets the color of each SME |
void |
setSMEGroup(int group)
|
void |
setSMEName(java.lang.String newSMEName)
Sets an new name for the SME |
private void |
setSocialCapital()
maps SocialCapital to the SME |
private void |
setTypology()
maps the typology to the SME |
boolean |
shrinkServicePool(float percentageToShrink)
This method shrinks the service pool by deleting the worst (less fit) Service, stored in the local ServicePool. |
boolean |
shrinkServicePoolByAge(float maxPercentageOfDemandedServices)
This method shrinks the service pool by deleting the oldest ServicePool Services, stored in the local ServicePool. |
boolean |
shrinkServicePoolByUseage(float percentageOfServicePoolServices)
This method shrinks the service pool by deleting the oldest as well as the most often used ServicePool Services, stored in the local ServicePool. |
java.lang.String |
toString()
|
| Methods inherited from class uchicago.src.sim.network.DefaultDrawableNode |
|---|
allowResizing, calcSize, contains, draw, getBorderColor, getBorderWidth, getColor, getFont, getHeight, getLabelColor, getNode, getWidth, getX, getY, setBorderColor, setBorderWidth, setColor, setDrawable, setDrawableNoCopy, setFont, setHeight, setLabelColor, setNodeLabel, setWidth, setX, setX, setY, setY |
| Methods inherited from class uchicago.src.sim.network.DefaultNode |
|---|
addInEdge, addInEdges, addOutEdge, addOutEdges, clearInEdges, clearOutEdges, getEdgesFrom, getEdgesTo, getFromNodes, getId, getInDegree, getInEdges, getInNodes, getNodeLabel, getNumInEdges, getNumOutEdges, getOutDegree, getOutEdges, getOutNodes, getRandomFromNode, getRandomNodeIn, getRandomNodeOut, getRandomToNode, getToNodes, hasEdgeFrom, hasEdgeTo, hasEdgeToOrFrom, makeRandomInEdge, makeRandomOutEdge, removeEdgesFrom, removeEdgesTo, removeInEdge, removeOutEdge |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface uchicago.src.sim.gui.DrawableNonGridNode |
|---|
getOutEdges |
| Methods inherited from interface uchicago.src.sim.gui.Drawable2DGridNode |
|---|
getOutEdges |
| Field Detail |
|---|
static final MersenneTwister mt
private java.awt.Color sMEColor
private java.awt.Color sMELabelColor
private java.util.Vector<Service> ServicesOnOffer
private LocalServicePool localServicePool
private java.util.HashMap partnerSMEs
private double fitness
private java.lang.String sMEName
private java.lang.String PicPath
private int sMEiD
private DemandedAndUsedServicePool demandedAndUsedServicePool
private EvEModel model
private int sMEGroup
private int minServicesOnOffer
private int maxServicesOnOffer
private int minServicesOnDemand
private int maxServicesOnDemand
uchicago.src.sim.gui.RoundRectNetworkItem gUIItem
private double actingProbability
static org.apache.log4j.Logger logger
private Prototype prototype
| Constructor Detail |
|---|
public SME(int newSMEiD,
java.lang.String sMEName,
int color,
int groupid)
public SME(int newSMEiD,
java.lang.String sMEName,
int color,
int grouid,
Prototype p)
public SME(int newSMEiD,
int color,
int groupid,
int x,
int y)
| Method Detail |
|---|
private void setParameters(int newSMEiD,
java.lang.String smeName,
int color,
int groupid)
private void assignServices()
public void initWorld()
public void initWorld(int x,
int y)
x - y - public boolean shrinkServicePool(float percentageToShrink)
percentageToShrink - is the percentage of to drop ServicePool services
public boolean shrinkServicePoolByUseage(float percentageOfServicePoolServices)
percentageOfServicePoolServices - is the percentage of to drop ServicePool services
public boolean shrinkServicePoolByAge(float maxPercentageOfDemandedServices)
percentageOfServicePoolServices - is the percentage of to drop ServicePool services
public java.util.Vector getOfferedServices()
public java.util.Vector getDemandedServices()
public java.util.Vector getUsedServices()
public double getFitness()
private void setFitness(double fitness)
private void calcFitness()
public int getSMEID()
public java.util.HashMap getPartnerSMEs()
public java.lang.String getSMEName()
public void setSMEName(java.lang.String newSMEName)
newSMEName - is the new name for the SMEprivate void setSMEColor(int color)
void - public boolean removeServiceFromServicePool(Service serviceToRemove)
serviceToRemove - is the Service which should be removed form the ServicePool
public LocalServicePool getServicePool()
public DemandedAndUsedServicePool getDemandedAndUsedServicePool()
public boolean addServiceToUsedServices(Service ServiceToAdd,
DemandedService demService)
ServiceToAdd - (the Service which should be added)demService - (the Service which was demanded)
public boolean addServiceToUsedServices(Service ServiceToAdd,
DemandedService demService,
java.util.Vector migHistory)
ServiceToAdd - (the Service which should be added)demService - (the Service which was demanded)migHistory - (migration History of the service to addpublic void addServiceOnOffer(Service serviceToAdd)
public void addServicesOnOffer(java.util.Vector<Service> servicesToAdd)
public void addServiceOnDemand(DemandedService serviceToAdd)
public boolean removeServiceFromUsedServices(Service ServiceToRemove)
ServiceToRemove - is the Service which should be removed from the UsedServices
public int getDegreeOfInteraction(SME PartnerSME)
PartnerSME - is the Partner SME which is searched
public boolean addPartnerSME(SME newPartnerSME,
int interaction)
newPartnerSME - is the new Partner SMElineColor - the color of the edge
public void increaseDegreeOfInteraction(SME PartnerSME)
PartnerSME - is the Partner SMEpublic void addServiceToServicePool(Service newService)
newService - is the Service which should be addedpublic void addServicesToServicePool(java.util.Vector<Service> newServices)
public java.lang.String toString()
toString in class java.lang.Objectpublic void newGA()
private DemandedService getNextRequest()
public void onDisplayClick(java.awt.event.MouseEvent evt)
public PartnerEdge addPartnerEdgeToSME(SME targetSME,
int distanceSME,
float strength)
public ProducerEdge addProducerEdgeToSME(SME targetSME,
int distanceSME,
float strength)
public NetworkEdge addNetworkEdgeToSME(SME targetSME,
int distanceSME,
float strength)
public org.w3c.dom.Element getAsXmlElement(org.w3c.dom.Document xmldoc)
public void selectService(DemandedService request,
java.util.ArrayList results)
request - results - Gets a ranked list of services from OptimisationSupervisor and selects
the service to instanciate
public void instanciateService(DemandedService request,
Individuum toInstantiate)
request - toInstantiate - The service is added to the used service pool.public EvEModel getModel()
public int getSMEGroup()
public void setSMEGroup(int group)
public Prototype getPrototype()
public void setPrototype(Prototype prototype)
private void setTypology()
private void setICTUsage()
private void setDimension()
private void setInnovation()
private void setSocialCapital()
private void setBusinessStrategy()
private void setAttitudeOffering()
private void setAttitudeDemanding()
public int getMaxServicesOnDemand()
public int getMaxServicesOnOffer()
public int getMinServicesOnDemand()
public int getMinServicesOnOffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||