|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.aist.dmrc.platform.beans.solver.PFLPSolver
public class PFLPSolver
線形計画法のソルバー 「lp_solve」の ラップコンポーネント.
このコンポーネントから以下のイベントが発生します。
トリガー | 結果データ | イベント番号 |
---|---|---|
solve() メソッドを呼び出して計算が完了したとき |
演算結果 (Double) |
0 |
コンストラクタの概要 | |
---|---|
PFLPSolver()
コンポーネントを生成する。 |
メソッドの概要 | |
---|---|
void |
addConstraint(java.lang.String strConstraint)
制約条件を追加する. |
void |
addPFProcessTerminateListener(PFProcessTerminateListener lis)
引数で与えられたイベントリスナを登録し、 処理完了イベント発生時に処理を行う対象とする。 |
void |
clearConstraints()
制約条件リストをクリアする. |
void |
delConstraint(int index)
制約条件を削除する. |
int |
getComponentID()
コンポーネントIDを取得する。 |
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。 |
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。 |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する. |
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。 |
PFObjectList |
getConstraints()
制約条件の一覧を取得する. |
double |
getObjective()
計算した解を取得する. |
java.lang.String |
getObjFn()
目的関数を取得する. |
java.util.Iterator |
getPFProcessTerminateListenerList()
処理完了イベントリスナ配列を取得する。 |
double |
getVariable(java.lang.String name)
求めた解の変数値を取得する. |
PFObjectList |
getVariableList()
現在設定されている目的関数と制約条件を解析して、変数一覧を取得する. |
PFLabeledObjectList |
getVariables()
求めた解の変数値の一覧を取得する. |
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する. |
boolean |
isMaxim()
最適解の設定を取得する. |
void |
localeUpdated()
ロケール変更に対応する。 |
void |
readXML(PFXMLLoader in)
XMLを入力する. |
void |
removePFProcessTerminateListener(PFProcessTerminateListener lis)
引数で与えられたイベントリスナを削除し、 処理完了イベント発生時に処理を行う対象から外す。 |
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する. |
void |
setComponentID(int id)
コンポーネントIDを設定する。 |
void |
setComponentKey(java.lang.String key)
コンポーネントキーを設定する。 |
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。 |
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する. |
void |
setMaxim()
求める最適解を最大に設定する. |
void |
setMinim()
求める最適解を最小に設定する. |
void |
setObjFn(java.lang.String strObjFn)
目的関数を設定する. |
boolean |
solve()
最適解を求める. |
void |
writeXML(PFXMLGenerator out)
XMLを出力する. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PFLPSolver()
メソッドの詳細 |
---|
public java.lang.String getComponentName()
PFComponent
内の getComponentName
public java.lang.String getComponentKey()
PFComponent
内の getComponentKey
public void setComponentKey(java.lang.String key)
PFComponent
内の setComponentKey
key
- コンポーネントキーpublic PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
PFComponent
内の getComponentID
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。
PFComponent
内の setComponentID
id
- 設定するコンポーネントIDpublic java.lang.String getComponentString()
PFComponent
内の getComponentString
public java.lang.String getComponentPublicName()
PFComponent
内の getComponentPublicName
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
PFComponent
内の setComponentPublicName
publicName
- 設定するコンポーネント公開名
PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
PFComponent
内の isAllowRemoteInvocation
public void setAllowRemoteInvocation(boolean flag)
PFComponent
内の setAllowRemoteInvocation
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
PFComponent
内の isAllowPullTransfer
public void setAllowPullTransfer(boolean flag)
PFComponent
内の setAllowPullTransfer
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
PFComponent
内の isAllowPushTransfer
public void setAllowPushTransfer(boolean flag)
PFComponent
内の setAllowPushTransfer
flag
- Push型コンポーネント転送要求に対する可否public java.util.Iterator getPFProcessTerminateListenerList()
PFProcessTerminateEventSource
内の getPFProcessTerminateListenerList
public void addPFProcessTerminateListener(PFProcessTerminateListener lis)
PFProcessTerminateEventSource
内の addPFProcessTerminateListener
lis
- 追加対象イベントリスナpublic void removePFProcessTerminateListener(PFProcessTerminateListener lis)
PFProcessTerminateEventSource
内の removePFProcessTerminateListener
lis
- 削除対象イベントリスナpublic void localeUpdated()
PFComponent
内の localeUpdated
public void setObjFn(java.lang.String strObjFn)
strObjFn
- 目的関数public java.lang.String getObjFn()
public void addConstraint(java.lang.String strConstraint)
strConstraint
- 制約条件public void delConstraint(int index)
index
- 制約条件リストのインデックスpublic PFObjectList getConstraints()
public void clearConstraints()
public PFObjectList getVariableList()
public void setMaxim()
public void setMinim()
public boolean isMaxim()
public boolean solve() throws PFException
PFComponentException
- 線形計画ソルバのパラメタ設定に失敗した場合
PFComponentException
- 計算処理に失敗した場合
PFComponentException
- イベント発生に失敗した場合
PFException
- 関数電卓を用いた係数算出に失敗した場合public double getObjective()
PFComponentException
- 解の取得に失敗した場合public PFLabeledObjectList getVariables()
PFComponentException
- 変数値の取得に失敗した場合public double getVariable(java.lang.String name) throws PFComponentException
name
- 変数名
PFComponentException
- 変数値の取得に失敗した場合public void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
public void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティ
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |