The State type exposes the following members.

Constructors

  NameDescription
Public methodState()()()()
Constructor for the initial state, starting at the node 1.
Public methodState(Int32)
Constructor for the initial state.
Protected methodState(State, Int32, Int32)
Constructor used at the Branch method.

Methods

  NameDescription
Public methodBranch
Branchs this node. Also sets the State.BestValue and State.BestSolution variables if arrive to such situation in the branch call. And also do a pasive Prune, i.e; it doesn't add childs worst than the State.BestSolution state.
Public methodCompareTo(Object)
Compare this State with the specified.
Public methodCompareTo(State)
Compare this State with the specified. Used at PriorityQueue.
Public methodEquals
Determina si el objeto Object especificado es igual al objeto Object actual.
(Inherited from Object.)
Protected methodFinalize
Permite que un objeto Object intente liberar recursos y realizar otras operaciones de limpieza antes de que el objeto Object sea reclamado por el recolector de elementos no utilizados.
(Inherited from Object.)
Public methodfx
Cost function for a possible child node. It takes into account the possible next weight in the path.
Public methodGetHashCode
Actúa como función hash para un tipo concreto.
(Inherited from Object.)
Public methodGetPathValue
Gets the total weight of the current path for this state. (Real value of fitness function). Use only this functions in strange situations, not branching.
Public methodGetType
Obtiene el objeto Type de la instancia actual.
(Inherited from Object.)
Protected methodMemberwiseClone
Crea una copia superficial del objeto Object actual.
(Inherited from Object.)
Protected methodPathContainsNode
Gets a value indicating if in the current path exists a node with the specified id.
Public methodPrint
Print at the console the string representation for this State.
Public methodToString
Gets the String representation for this State.
(Overrides Object..::..ToString()()()().)

Fields

  NameDescription
Public fieldStatic memberBestSolution
State representing the best solution reached
Public fieldStatic memberBestValue
The best value reached
Public fieldk
Size of the path
Public fieldStatic memberN
Number of Nodes in the Graph.
Public fieldStatic memberNbPruned
Current number of pruned States.
Public fieldpath
The path for this state
Public fieldStatic memberTheGraph
Common instance of the Graph been used by all the States.
Public fieldvalue
Function value for this State

See Also