diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:36:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:22 +0200 |
commit | da677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch) | |
tree | 9aa09066c95935117bf405b119ed9f89f448a54d /nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java | |
parent | 14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff) |
java: reduce scope, make fields private
found by UCDetector
Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java')
-rw-r--r-- | nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java index 68c3270adb79..19f1971f6c0c 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java @@ -71,11 +71,11 @@ public class PSGTBehavior extends AbsGTBehavior { public double CL=0; //See ref[4], normally be 0.001~0.005 //the own memory: store the point that generated in old learning cycle - protected BasicPoint pold_t; + private BasicPoint pold_t; //the own memory: store the point that generated in last learning cycle - protected BasicPoint pcurrent_t; + private BasicPoint pcurrent_t; //the own memory: store the personal best point - protected SearchPoint pbest_t; + private SearchPoint pbest_t; public void setMemPoints(SearchPoint pbest, BasicPoint pcurrent, BasicPoint pold) { pcurrent_t = pcurrent; |