predicate
「predicate」とは、基礎とする・断定する・述語のことを意味する英語表現である。
「predicate」の基本的な意味
「predicate」は他動詞の場合、基礎を置く・断定する・含意するのことを意味する英語表現である。一方自動詞としては、断言するの意味を持つ。さらに名詞としての「predicate」の意味は、断定・述部・述語である。「predicate」の活用一覧
動詞の「predicate」は、過去形と過去分詞は「predicated」と表記し、現在分詞だと「predicating」となる。三人称単数現在は「predicates」となるが、名詞の「predicate」の複数形も「predicates」と表記するため区別する必要がある。「predicate」の語源
「predicate」は、接頭辞の「pre(前もって)」と「dicate(指示する、書きとらせる)」が組み合わさってできた英語表現である。前もって指示されたというところから派生して、基礎となるや断定するなどの意味で使われている。「predicate」の発音・読み方
「predicate」の発音記号は、「prédikət」である。カタカナ表記だと「プレディケート」と書かれることが多いが、「プレェディィカァトゥ」と表記したほうが実際の発音に近い。「Predicate (Java)」とは
javaやc++などのプログラミングにおいて、「Predicate」は引数を通して何かを判断する処理として使われている関数である。戻り値がboolean型の処理をラムダ式で行うと、そこから変数に代入して簡単に呼び出すことができる。最初にtest(T t)にジェネリクスを指定する型を引数として与え、その後ラムダ式にはbooleanを返すために評価式を記述するという形で使用する。また「Predicate」はstaticメソッドと3つのdeaultメソッドにわけて考えることができる。staticメソッドでは、オブジェクトが等しい場合のみtrueと返され、引数がnullの場合はnullも評価対象に含めているとtrueと返ってくる仕組みである。一方defaultメソッドには、and・or・negeteの3つがある。否定する仕組みがそれぞれのメソッドごとに異なるため、状況に応じて使い分ける必要がある。「Predicate」のインターフェースの中でも、textメソッドが2つの引数を持つように特殊化されたものを「BiPredicate」と呼んでいる。
「predicate(Minecraft )」とは
Minecraftにおいて「predicate」とは、ルートテーブルの条件で分離し、特定の条件でコマンド実行時に使える状態にすることである。コンディションの中から1つ以上を選んで記述することで、JSONファイルの形でデータパックの中に保存できる。さまざまなコンディションで利用できるため、長くなったため整理したいタイミングなどで使われている。またJSONファイル形式で保存されるため、色々なmcfunctionファイルから呼び出すことも可能である。「predicate device」とは
「predicate device」とは、アメリカにおいて合法的に市販されている医療機器製品を示す言葉である。論文で発表された新規医療機器は、「510(k)申請」が使用されている場合が多い。この「510(k)申請」とは、合法的に市販されている医療機器製品である「predicate device」とは異なるけれど、申請することによって実質的に「predicate device」と同等であることを示すことが求められるもののことを示している。「predicate」を含む英熟語・英語表現
「predicate nominative」とは
「predicate nominative」とは、「述語主格」や「主格の述語名詞」と呼ばれるものことを示している。また「predicate noun」と表記する場合もある。さらに「predicate adjective(述語形容詞)」、「predicate adverb(述語副詞)」、「predicate nominal(叙述名詞形)」、「predicate verb(述語動詞)」などの表現もある。
「predicate」の使い方・例文
「predicate」の使い方には、以下のような例文があげられる。・It is possible to predicate that people do not reincarnate?
人が転生しないと断言できるのか?
・She confidently predicated that his theory was correct.
彼女は自信満々に彼の説が正しいと断言した。
・His opinion is predicated upon his own experience.
彼の意見は彼自身の経験に基づいている。
・This article is predicated upon the notion that the aging of society will accelerate.
その記事は社会の高齢化は加速していくという考えに基づいている。
・The new approach to the issue is predicated on a theory of language acquisition.
その問題の新しい研究方法は言語習得の理論に基礎を置いている。
・I learned what a predicate nominative is in my English class.
英語の授業で述語名詞とは何か学んだ。
・This is an elements which consists of a sentence named predicate.
これは述語という文の構成部分である。
・A sentence consists of a subject and a predicate.
文章は主語と述語から成り立っている。
Predicate ジェネリック デリゲート
アセンブリ: mscorlib (mscorlib.dll 内)

パラメータ
戻り値
このデリゲートで表されるメソッド内で定義された基準を obj が満たしている場合は true。それ以外の場合は false。


Predicate デリゲートと Array.Find メソッドを使用して、Point 構造体の配列を検索するコード例を次に示します。X フィールドと Y フィールドの積が 100,000 を超える場合は、デリゲートが表す ProductGT10 メソッドから true が返ります。Find メソッドでは、配列の各要素に対してデリゲートが呼び出され、テスト条件を満たす最初のポイントで停止します。
![]() |
---|
Visual Basic や C# のユーザーは、デリゲートを明示的に作成する必要はありません。また、ジェネリック メソッドの型引数を指定する必要もありません。コンパイラでは、指定するメソッドの引数から必要な型を判断します。 |
Imports System Imports System.Drawing Public Class Example Public Shared Sub Main() ' Create an array of five Point structures. Dim points() As Point = { new Point(100, 200), _ new Point(150, 250), new Point(250, 375), _ new Point(275, 395), new Point(295, 450) } ' To find the first Point structure for which X times Y ' is greater than 100000, pass the array and a delegate ' that represents the ProductGT10 method to the Shared ' Find method of the Array class. Dim first As Point = Array.Find(points, _ AddressOf ProductGT10) ' Note that you do not need to create the delegate ' explicitly, or to specify the type parameter of the ' generic method, because the compiler has enough ' context to determine that information for you. ' Display the first structure found. Console.WriteLine("Found: X = {0}, Y = {1}", _ first.X, first.Y) End Sub ' This method implements the test condition for the Find ' method. Private Shared Function ProductGT10(ByVal p As Point) As Boolean If p.X * p.Y > 100000 Then Return True Else Return False End If End Function End Class ' This code example produces the following output: ' 'Found: X = 275, Y = 395
using System; using System.Drawing; public class Example { public static void Main() { // Create an array of five Point structures. Point[] points = { new Point(100, 200), new Point(150, 250), new Point(250, 375), new Point(275, 395), new Point(295, 450) }; // To find the first Point structure for which X times Y // is greater than 100000, pass the array and a delegate // that represents the ProductGT10 method to the Shared // Find method of the Array class. Point first = Array.Find(points, ProductGT10); // Note that you do not need to create the delegate // explicitly, or to specify the type parameter of the // generic method, because the C# compiler has enough // context to determine that information for you. // Display the first structure found. Console.WriteLine("Found: X = {0}, Y = {1}", first.X, first.Y); } // This method implements the test condition for the Find // method. private static bool ProductGT10(Point p) { if (p.X * p.Y > 100000) { return true; } else { return false; } } } /* This code example produces the following output: Found: X = 275, Y = 395 */

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Predicateのページへのリンク