void function ( Topology < P > arg0 ) { for ( P loc0 : arg0 ) { loc0 . calculateFitness ( ) ; for ( P loc1 : arg0 . neighbourhood ( loc0 ) ) { if ( loc0 . getSocialFitness ( ) . compareTo ( loc1 . getNeighbourhoodBest ( ) . getSocialFitness ( ) ) > 0 ) { loc1 . setNeighbourhoodBest ( loc0 ) ; } } } }
todo : the problem with this is that it is pso specific . it uses particle particles instead of entity entities , because the entity class does not have thenotion of a neighbourhood best . concode_field_sep boolean hasMemory concode_field_sep EnvironmentChangeResponseStrategy<E> getClone concode_elem_sep boolean getHasMemory concode_elem_sep void respond concode_elem_sep void performReaction concode_elem_sep void setHasMemory