jsci.maths.categories
Class Preorder
- java.lang.Object
-
- jsci.maths.categories.Preorder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classPreorder.RelationclassPreorder.RelationSet-
Nested classes/interfaces inherited from interface jsci.maths.categories.Category
Category.HomSet, Category.Morphism
-
-
Constructor Summary
Constructors Constructor and Description Preorder(int n)Constructs a preorder category.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectcardinality(java.lang.Object a)Returns the cardinality of an object.Category.HomSethom(java.lang.Object a, java.lang.Object b)Returns a hom-set.Category.Morphismidentity(java.lang.Object a)Returns the identity morphism for an object.java.lang.Objectinitial()intordinal()Returns the ordinal that this category represents.java.lang.Objectterminal()
-
-
-
Method Detail
-
identity
public Category.Morphism identity(java.lang.Object a)
Returns the identity morphism for an object.
-
cardinality
public java.lang.Object cardinality(java.lang.Object a)
Returns the cardinality of an object.- Specified by:
cardinalityin interfaceCategory- Parameters:
a- an Integer.- Returns:
- an Integer.
-
hom
public Category.HomSet hom(java.lang.Object a, java.lang.Object b)
Returns a hom-set.
-
initial
public java.lang.Object initial()
-
terminal
public java.lang.Object terminal()
-
ordinal
public int ordinal()
Returns the ordinal that this category represents.
-
-
DMelt 3.0 © DataMelt by jWork.ORG