public class SimpleInnovationStatus extends Object implements InnovationStatus
| Modifier and Type | Field and Description |
|---|---|
protected InnovationState |
state |
| Constructor and Description |
|---|
SimpleInnovationStatus() |
| Modifier and Type | Method and Description |
|---|---|
void |
adopt() |
void |
aware() |
double |
getNeighbourShare() |
InnovationState |
getState() |
boolean |
hasNeighbourShareChanged() |
boolean |
hasNetworkChanged() |
void |
reject() |
void |
resetNeighbourShareChanged() |
void |
setNeighbourShare(double adoptedNeighbourShare)
Status neighbourShareChanged becomes only true when the neighbourShare
value changes (assumed that it does not matter to the agent if agents
adopt when at the same time the same number of agents rejects.
|
void |
setNetworkChanged(boolean networkChanged) |
void |
trial() |
protected InnovationState state
public double getNeighbourShare()
getNeighbourShare in interface InnovationStatuspublic void setNeighbourShare(double adoptedNeighbourShare)
setNeighbourShare in interface InnovationStatusadoptedNeighbourShare - the adoptedNeighbourShare to setpublic boolean hasNetworkChanged()
hasNetworkChanged in interface InnovationStatuspublic void setNetworkChanged(boolean networkChanged)
setNetworkChanged in interface InnovationStatuspublic InnovationState getState()
getState in interface InnovationStatusInnovationStatus.getState()public void aware()
aware in interface InnovationStatusInnovationStatus.aware()public void trial()
trial in interface InnovationStatusInnovationStatus.trial()public void adopt()
adopt in interface InnovationStatusInnovationStatus.adopt()public void reject()
reject in interface InnovationStatusInnovationStatus.reject()public boolean hasNeighbourShareChanged()
hasNeighbourShareChanged in interface InnovationStatusInnovationStatus.hasNeighbourShareChanged()public void resetNeighbourShareChanged()
resetNeighbourShareChanged in interface InnovationStatusInnovationStatus.resetNeighbourShareChanged()