to.tetramorph.starbase.chartmodule
クラス AffinityAspectFinder

java.lang.Object
  上位を拡張 to.tetramorph.starbase.chartmodule.AffinityAspectFinder

public class AffinityAspectFinder
extends Object

NPT相性円でのアスペクトを求めるメソッド。普通に各円の組合せを網羅する求め方と 一つの天体が他の天体と形成しているアスペクトのみを抽出するケースと二種類ある。


メソッドの概要
static List<Aspect> getAspectList(int flag, AffinityChart chart, NPTSpecificSettingPanel scp)
          N,P,T,N2,P2の組合せアスペクトを求める。
static List<Aspect> getTargetAspectList(int npt, Body body, AffinityChart chart, NPTSpecificSettingPanel scp, int target)
          bodyで指定された天体と他の天体とのアスペクト(複数)を求める。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getAspectList

public static List<Aspect> getAspectList(int flag,
                                         AffinityChart chart,
                                         NPTSpecificSettingPanel scp)
N,P,T,N2,P2の組合せアスペクトを求める。 flagのbit0〜bit14がスイッチになっていている。
 b0   N1     b5   N1xN2   b10   P2xT
 b1   N2     b6   P1xP2   b11   N1xP1
 b2   P1     b7   N1xT    b12   N1xP2
 b3   P2     b8   N2xT    b13   N2xP2
 b4   T      b9   P1xT    b14   N2xP1
 

パラメータ:
flag - 6bitのフラグで、bitが1ならそのアスペクトを求める。
chart - NPTChartオブジェクト
scp - NPT計算設定パネルオブジェクト

getTargetAspectList

public static List<Aspect> getTargetAspectList(int npt,
                                               Body body,
                                               AffinityChart chart,
                                               NPTSpecificSettingPanel scp,
                                               int target)
bodyで指定された天体と他の天体とのアスペクト(複数)を求める。

パラメータ:
npt - bodyがN1=0,P1=1,T=2,N2=3,P2=4を指定する。
body - 選択された天体
chart - AffinityChartオブジェクト
scp - NPT計算設定パネル
target - N,P,T,N2,P2のどの円の天体群とのアスペクトを検出するか。 b0,b1,b2,b3,b4の組合せで指定する。