SALPMPE
Class state

java.lang.Object
  extended by SALPMPE.state

public class state
extends java.lang.Object

Defines the representation of the industry state and associated operations.

Version:
2.0

Field Summary
(package private)  double frequency
          State frequency relative to the sampled set
(package private)  int[] index
          Industry state
(package private)  double[] profit
          Profit vector associated to the state
(package private)  strategy Strat
          Strategy for each firm outside industry
 
Constructor Summary
state(int[] inputindex)
          Defines a new instance of an industry state.
 
Method Summary
 void increaseFrequency()
          Increases the frequency of the state by one.
 boolean isEqual(int[] s)
          Checks if the industry state is equal to a given industry state.
 void setFrequency(double newfreq)
          Increases the frequency of the state.
 void setProfit(double[] inputprofit)
          Assigns profit vector to an industry state.
 void setStrategy(int[] investment, double[] exit, double entry)
           
 void setStrategy(strategy inputStrategy)
          Assigns strategy to the industry state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frequency

double frequency
State frequency relative to the sampled set


profit

double[] profit
Profit vector associated to the state


Strat

strategy Strat
Strategy for each firm outside industry


index

int[] index
Industry state

Constructor Detail

state

public state(int[] inputindex)
Defines a new instance of an industry state.

Parameters:
inputindex - Industry state.
Method Detail

setProfit

public void setProfit(double[] inputprofit)
Assigns profit vector to an industry state.

Parameters:
inputprofit - Profit vector.

increaseFrequency

public void increaseFrequency()
Increases the frequency of the state by one.


setFrequency

public void setFrequency(double newfreq)
Increases the frequency of the state.

Parameters:
newfreq - Frequency increment.

setStrategy

public void setStrategy(strategy inputStrategy)
Assigns strategy to the industry state.

Parameters:
inputpolicy - Strategy vector.

setStrategy

public void setStrategy(int[] investment,
                        double[] exit,
                        double entry)

isEqual

public boolean isEqual(int[] s)
Checks if the industry state is equal to a given industry state.

Parameters:
s - benchmark industry state.
Returns:
"true" states are equal, "false" states are not equal.