My Project
|
Classes | |
class | HistoricFirm |
Public Member Functions | |
LayeredMatrix | GenerateKnowledgeNetwork () |
boolean | WriteKnowledgeGraph (LayeredMatrix network, String filename) |
boolean | WriteActionGraph (String filename) |
boolean | WriteAllActionsGraph (String filename) |
void | InsertHistoricAction (Firm actor, Firm inspiration, int action_type) |
double[][] | GenerateSimilarityNetwork () |
boolean | WriteSimilarityGraph (double[][] network, String filename) |
boolean | SaveAllActionsGraph () |
boolean | SaveAllActionsGraphEnd () |
boolean | SaveActionGraph () |
boolean | SaveActionGraphEnd () |
boolean | SaveKnowledgeGraph () |
boolean | SaveKnowledgeGraphEnd () |
boolean | SaveSimilarityGraph () |
boolean | SaveSimilarityGraphEnd () |
void | buildObjects () |
void | performAction () |
void | updateStats () |
double | powerLaw (double min, double max, double exponent) |
int | getTorus (int c) |
Static Public Member Functions | |
static void | main (String[] args) |
Public Attributes | |
int | worldLength = 100 |
int | numClusters = 1 |
the number of clusters | |
float | varClusterPos = 20.0f |
int | numInnovatorsInACluster = 10 |
int | numImitatorsInACluster = 10 |
int | numIsolatedInnovators = 10 |
int | numIsolatedImitators = 10 |
int | maxFieldsPerFirm = 5 |
float | maxExpertise = 10.0f |
float | decayRate = 0.1f |
float | cognitiveDistanceWindow = 0.5f |
float | maxCognitiveEffort = 1.0f |
int | newBEIsIDs |
int | clusteredImitatorDeaths = 0 |
int | isolatedImitatorDeaths = 0 |
int | clusteredInnovatorDeaths = 0 |
int | isolatedInnovatorDeaths = 0 |
CommonKnowledge | commonKnowledge |
BufferedWriter | stats |
time series | |
FileWriter | BEIs |
FileWriter | KFs |
knowledge fields at each simulation step | |
Static Public Attributes | |
static int | stopsAt = 2 |
the number of simulation steps | |
static boolean | changeSeed = false |
the seed of random numbers generators More... | |
static long | seed = 100000 |
static int | saveNetworkStep = 5 |
static int | simulation_number = 1 |
static int | numBusinessElements = 2 |
static int | newBusinessElements = 1 |
static int | originOfPerformance = 0 |
static int | step = 1 |
the simulation step | |
static int | run = 1 |
the counter of simulations (runs) | |
static ArrayList< Firm > | firmList |
the list of firms | |
static ArrayList< BusinessElementInstance >[] | instances |
a vector of lists of BEIs, one for each business element | |
Private Member Functions | |
void | updateKFdata () |
void | updateBEIdistribution () |
Model manages all other agents and objects.
|
inline |
Here, the objects populating the model are created. These include:
Initialilzations of various objects:
|
inline |
Knowledge Network Nodes are knowledge fields, that are linked if they share an instance of a business element. All nodes are black. Their labels show knowledge fields' IDs. Edges are colored depending on which business element any two knowledge fields have in common:
|
inline |
The Similarity Network. The Similarity Network depicts a similarity index between firms' knowledge bases at a particular simulation step. Nodes represent firms. All nodes are black. Labels show firms' IDs. The labels of clustered firms also show their cluster's number preceded by a 'C'. The similarity index between two firms' knowledge bases is illustrated by edge color.
|
inline |
This function returns a coordinate on a torus worldLength x worldLength.
c |
This method is called by firms in order to store any action they undertake in the matrix of past actions.
actor | |
inspiration | |
action_type |
|
inlinestatic |
The main. Here is where everything starts.
args |
|
inline |
Several actions are carried out:
|
inline |
MATHEMATICAL FUNCTIONS This function is called by buildObjects in order to initialize the size of firms according to a power law. It is also called in order to substitute dead firms.
min | |
max | |
exponent |
|
inline |
|
inline |
|
inline |
A series of methods to write information on:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
The distribution of business element instances. This prints the following information on BEIs.dat:
|
inlineprivate |
Output data on knowledge fields:
|
inline |
The output file for all time series produced by this model (66 variables):
|
inline |
The network of actions: Action The network of past actions: HistoricActions Nodes represent firms. Their labels tell their IDs. The labels of clustered firms also show their cluster's ID preceded by a 'C'. Actions are illustrated by nodes' colors and edges' colors. Nodes representing Innovators are black if they undertake no action. Their rim is also black.
filename |
|
inline |
HistoricAction begins. Salva il grafo delle intersezioni tra i BEI delle aziende.
filename |
|
inline |
salva il grafo delle intersezioni tra i BEI della CommonKnowledge
network | |
filename |
|
inline |
salva il grafo delle similarità tra aziende returns 0 if ok.
network | |
filename |
FileWriter Model.BEIs |
business element instances at each simulation step
|
static |
the seed of random numbers generators
if true, it selects at random
int Model.clusteredImitatorDeaths = 0 |
the number of times an Imitator located in a cluster dies
int Model.clusteredInnovatorDeaths = 0 |
the number of times an Innovator located in a cluster dies
float Model.cognitiveDistanceWindow = 0.5f |
the central window of intermediate cognitive distance
CommonKnowledge Model.commonKnowledge |
stores the number of instances of each knowledge field and computes the betweeness centrality of the graph of knowledge fields, which measures performance
float Model.decayRate = 0.1f |
the rate of decay of capital and knowledge
int Model.isolatedImitatorDeaths = 0 |
the number of times an isolated Imitator dies
int Model.isolatedInnovatorDeaths = 0 |
the number of times an isolated Innovator dies
float Model.maxCognitiveEffort = 1.0f |
the maximum cognitive effort that can be spent to take account of rivals
float Model.maxExpertise = 10.0f |
the maximum expertise that can be attained on a knowledge field
int Model.maxFieldsPerFirm = 5 |
the maximum number of knowledge fields that a firm can manage
int Model.newBEIsIDs |
the starting point for the IDs of new BEIs created during the simulation, read and updated each time a new BEI is created the number of business elements multiplied by the number of firms
|
static |
how many novel business elements are created when original exploration is made
|
static |
the number of business elements: product, market, technology, organization, etc.
int Model.numImitatorsInACluster = 10 |
the number of imitators in one cluster
int Model.numInnovatorsInACluster = 10 |
the number of innovators in one cluster
int Model.numIsolatedImitators = 10 |
the number of isolated imitators
int Model.numIsolatedInnovators = 10 |
the number of isolated innovators
|
static |
0: Random performance; 1: Betweenness centrality.
|
static |
the intervals at which network data are written
|
static |
the seed of the random numbers generators
|
static |
the number of simulations, always = 1 in single-run (this is used in the names of the graphs)
float Model.varClusterPos = 20.0f |
the variance of the position of clusters and isolated firms in the world
int Model.worldLength = 100 |
the world is a torus obtained from a square