Java Doc for JMLEqualsToObjectRelation.java in  » Testing » KeY » org » jmlspecs » models » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » KeY » org.jmlspecs.models 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jmlspecs.models.JMLEqualsToObjectRelation

All known Subclasses:   org.jmlspecs.models.JMLEqualsToObjectMap,
JMLEqualsToObjectRelation
public class JMLEqualsToObjectRelation implements JMLCollection(Code)
Binary relations (or set-valued functions) from non-null elements of Object to non-null elements of Object . The first type, Object, is called the domain type of the relation; the second type, Object, is called the range type of the relation. A relation can be seen as a set of pairs, of form (dv, rv), consisting of an element of the domain type, dv, and an element of the range type, rv. Alternatively, it can be seen as a set-valued function that relates each element of the domain type to some set of elements of the range type (a JMLObjectSet ).

This type considers elements val and dv of the domain type, to be distinct just when !val.equals(dv). It considers elements of r and rv of the range type to be distinct just when r != rv. Cloning takes place for the domain or range elements if the corresponding domain or range type is JMLType .
version:
   $Revision: 1.1.1.1 $
author:
   Gary T. Leavens
author:
   Clyde Ruby
See Also:   JMLCollection
See Also:   JMLType
See Also:   JMLEqualsToObjectMap
See Also:   JMLEqualsToObjectRelationEnumerator
See Also:   JMLEqualsToObjectRelationImageEnumerator
See Also:   JMLValueSet
See Also:   JMLObjectSet
See Also:   JMLObjectToObjectRelation
See Also:   JMLValueToObjectRelation
See Also:   JMLObjectToValueRelation
See Also:   JMLValueToValueRelation



Field Summary
final public static  JMLEqualsToObjectRelationEMPTY
     The empty JMLEqualsToObjectRelation.
final protected static  StringTOO_BIG_TO_UNION
    
final protected  JMLEqualsSetdomain_
     The set of elements in the domain of this relation.
final protected  JMLValueSetimagePairSet_
     The set representing the image pairs in the relation.
final protected  intsize_
     The size (number of pairs) of this relation.

Constructor Summary
public  JMLEqualsToObjectRelation()
     Initialize this to be an empty relation.
public  JMLEqualsToObjectRelation(Object dv, Object rv)
     Initialize this to be a relation containing a single association between the given domain and range elements.
public  JMLEqualsToObjectRelation(JMLEqualsObjectPair pair)
     Initialize this to be a relation containing a single association given by the pair.
protected  JMLEqualsToObjectRelation(JMLValueSet ipset, JMLEqualsSet dom, int sz)
     Initialize this using the given representation.

Method Summary
public  JMLEqualsToObjectRelationadd(Object dv, Object rv)
     Return a relation that is just like this relation, except that it also associates the given domain element to the given range element.
public  JMLEqualsToObjectRelationEnumeratorassociations()
     Return a enumerator for the set of associations that conceptually make up this relation.
public  Objectclone()
     Return a clone of this object.
public  JMLValueToObjectRelationcompose(JMLValueToEqualsRelation othRel)
     Return a relation that is the composition of the given relation and this relation.
public  JMLObjectToObjectRelationcompose(JMLObjectToEqualsRelation othRel)
     Return a relation that is the composition of the given relation and this relation.
public  JMLEqualsToObjectRelationdifference(JMLEqualsToObjectRelation othRel)
     Return a relation that is the difference between this and the given relation.
public  JMLEqualsSetdomain()
     Returns a set containing the domain of this relation.
public  JMLEqualsSetEnumeratordomainElements()
     Return a enumerator for the set that is the domain of this relation.
public  JMLObjectSetelementImage(Object dv)
     Returns a set containing all the range elements that this relation relates to the given domain element.
public  JMLEqualsToObjectRelationEnumeratorelements()
     Return a enumerator for the set of associations that conceptually make up this relation.
public  booleanequals(Object obj)
     Test whether this object's value is equal to the given argument.
public  booleanhas(Object dv, Object rv)
     Tells whether this associates the given key to the given value.
public  booleanhas(JMLEqualsObjectPair pair)
     Tells whether this associates the given key to the given value.
public  booleanhas(Object obj)
     Tells whether this associates the given key to the given value.
public  inthashCode()
     Return a hash code for this object.
public  JMLObjectSetimage(JMLEqualsSet dom)
     Returns a set containing all the range elements that this relation relates to the elements of the given set of domain elements.
public  JMLValueSetimagePairSet()
     Return the set of image set pairs that make up this relation.
public  JMLEqualsToObjectRelationImageEnumeratorimagePairs()
     Return the set of domain image set pairs that make up this relation.
public  JMLEqualsToObjectRelationinsert(JMLEqualsObjectPair pair)
     Return a relation that is just like this relation, except that it also includes the association described by the given pair.
public  intint_size()
     Return the number of associations in this relation.
public  JMLEqualsToObjectRelationintersection(JMLEqualsToObjectRelation othRel)
     Return a relation that is the intersection of this and the given relation.
public  JMLObjectToEqualsRelationinverse()
     Returns the inverse of this relation.
public  JMLEqualsSetinverseElementImage(Object rv)
     Return a set of all the domain elements that relate to the given range element.
public  JMLEqualsSetinverseImage(JMLObjectSet rng)
     Return a set of all the domain elements that relate to some element in the given set of range elements.
public  booleanisDefinedAt(Object dv)
     Tells whether this relation associates any range element to the given domain element.
public  booleanisEmpty()
     Tells whether the relation is empty.
public  booleanisaFunction()
     Tells whether this relation is a function.
public  JMLIteratoriterator()
     Returns an Iterator over the set of pairs conceptually contained in this relation..
public  JMLObjectSetrange()
     Returns a set containing the range of this relation.
public  JMLObjectSetEnumeratorrangeElements()
     Return a enumerator for the set that is the range of this relation.
public  JMLEqualsToObjectRelationremove(Object dv, Object rv)
     Return a relation that is just like this relation, except that it does not contain the association, if any, between the given domain and range elements.
public  JMLEqualsToObjectRelationremove(JMLEqualsObjectPair pair)
     Return a relation that is just like this relation, except that it does not contain association described by the given pair.
public  JMLEqualsToObjectRelationremoveFromDomain(Object dv)
     Return a relation that is just like this relation, except that it does not contain any association with the given domain element.
public  JMLEqualsToObjectRelationrestrictDomainTo(JMLEqualsSet dom)
     Return a relation that is like this relation except that its domain is limited to just the elements of the given set.
public  JMLEqualsToObjectRelationrestrictRangeTo(JMLObjectSet rng)
     Return a relation that is like this relation except that its range is limited to just the elements of the given set.
public static  JMLEqualsToObjectRelationsingleton(Object dv, Object rv)
     Return the singleton relation containing the given association.
public static  JMLEqualsToObjectRelationsingleton(JMLEqualsObjectPair pair)
     Return the singleton relation containing the association described by the given pair.
public  JMLValueBagtoBag()
     Return the bag of all associations in this relation.
public  JMLEqualsToObjectMaptoFunction()
     Return a map that is contained in this relation.
public  JMLValueSequencetoSequence()
     Return a sequence containing all associations in this relation.
public  JMLValueSettoSet()
     Return the set of all associations in this relation.
public  StringtoString()
     Return a string representation of this object.
public  JMLEqualsToObjectRelationunion(JMLEqualsToObjectRelation othRel)
     Return a relation that union of the this and the given relation.

Field Detail
EMPTY
final public static JMLEqualsToObjectRelation EMPTY(Code)
The empty JMLEqualsToObjectRelation.
See Also:   JMLEqualsToObjectRelation.JMLEqualsToObjectRelation()



TOO_BIG_TO_UNION
final protected static String TOO_BIG_TO_UNION(Code)



domain_
final protected JMLEqualsSet domain_(Code)
The set of elements in the domain of this relation.



imagePairSet_
final protected JMLValueSet imagePairSet_(Code)
The set representing the image pairs in the relation. The elements of this set are JMLEqualsValuePairs, which are all non-null. Each such pair has a key which is an element in domain_ and a value which is a JMLObjectSet containing all of the elements that the key of the pair is related to.



size_
final protected int size_(Code)
The size (number of pairs) of this relation.




Constructor Detail
JMLEqualsToObjectRelation
public JMLEqualsToObjectRelation()(Code)
Initialize this to be an empty relation. That is, the value is an empty set of pairs.
See Also:   JMLEqualsToObjectRelation.EMPTY



JMLEqualsToObjectRelation
public JMLEqualsToObjectRelation(Object dv, Object rv)(Code)
Initialize this to be a relation containing a single association between the given domain and range elements.
See Also:   JMLEqualsToObjectRelation.singleton(Object,Object)
See Also:   JMLEqualsToObjectRelation.JMLEqualsToObjectRelation(JMLEqualsObjectPair)



JMLEqualsToObjectRelation
public JMLEqualsToObjectRelation(JMLEqualsObjectPair pair)(Code)
Initialize this to be a relation containing a single association given by the pair.
See Also:   JMLEqualsToObjectRelation.singleton(JMLEqualsObjectPair)
See Also:   JMLEqualsToObjectRelation.JMLEqualsToObjectRelation(Object,Object)



JMLEqualsToObjectRelation
protected JMLEqualsToObjectRelation(JMLValueSet ipset, JMLEqualsSet dom, int sz)(Code)
Initialize this using the given representation.




Method Detail
add
public JMLEqualsToObjectRelation add(Object dv, Object rv) throws NullPointerException, IllegalStateException(Code)
Return a relation that is just like this relation, except that it also associates the given domain element to the given range element.
See Also:   JMLEqualsToObjectRelation.insert



associations
public JMLEqualsToObjectRelationEnumerator associations()(Code)
Return a enumerator for the set of associations that conceptually make up this relation.
See Also:   JMLEqualsToObjectRelation.elements()
See Also:   JMLEqualsToObjectRelation.iterator()
See Also:   JMLEqualsToObjectRelation.toSet()
See Also:   JMLEqualsToObjectRelation.imagePairs()



clone
public Object clone()(Code)
Return a clone of this object.



compose
public JMLValueToObjectRelation compose(JMLValueToEqualsRelation othRel)(Code)
Return a relation that is the composition of the given relation and this relation. The composition is done in the "usual" order, so that if the given relation relates x to y, and this relation relates y to z, then the result relates x to z.
See Also:   JMLEqualsToObjectRelation.compose(JMLObjectToEqualsRelation)



compose
public JMLObjectToObjectRelation compose(JMLObjectToEqualsRelation othRel)(Code)
Return a relation that is the composition of the given relation and this relation. The composition is done in the "usual" order, so that if the given relation relates x to y, and this relation relates y to z, then the result relates x to z.
See Also:   JMLEqualsToObjectRelation.compose(JMLValueToEqualsRelation)



difference
public JMLEqualsToObjectRelation difference(JMLEqualsToObjectRelation othRel)(Code)
Return a relation that is the difference between this and the given relation. This is the difference between the sets of associations.
See Also:   JMLEqualsToObjectRelation.difference
See Also:   JMLEqualsToObjectRelation.intersection



domain
public JMLEqualsSet domain()(Code)
Returns a set containing the domain of this relation.
See Also:   JMLEqualsToObjectRelation.domainElements()
See Also:   JMLEqualsToObjectRelation.associations()
See Also:   JMLEqualsToObjectRelation.isDefinedAt
See Also:   JMLEqualsToObjectRelation.image
See Also:   JMLEqualsToObjectRelation.range()
See Also:   JMLEqualsToObjectRelation.inverse()



domainElements
public JMLEqualsSetEnumerator domainElements()(Code)
Return a enumerator for the set that is the domain of this relation.
See Also:   JMLEqualsToObjectRelation.domain()
See Also:   JMLEqualsToObjectRelation.rangeElements()



elementImage
public JMLObjectSet elementImage(Object dv)(Code)
Returns a set containing all the range elements that this relation relates to the given domain element.
See Also:   JMLEqualsToObjectRelation.image
See Also:   JMLEqualsToObjectMap.apply



elements
public JMLEqualsToObjectRelationEnumerator elements()(Code)
Return a enumerator for the set of associations that conceptually make up this relation. This is a synonym for associations.
See Also:   JMLEqualsToObjectRelation.associations()
See Also:   JMLEqualsToObjectRelation.iterator()



equals
public boolean equals(Object obj)(Code)
Test whether this object's value is equal to the given argument.



has
public boolean has(Object dv, Object rv)(Code)
Tells whether this associates the given key to the given value.
See Also:   JMLEqualsToObjectRelation.isDefinedAt
See Also:   JMLEqualsToObjectRelation.has(JMLEqualsObjectPair)



has
public boolean has(JMLEqualsObjectPair pair)(Code)
Tells whether this associates the given key to the given value.
See Also:   JMLEqualsToObjectRelation.isDefinedAt
See Also:   JMLEqualsToObjectRelation.has(Object,Object)



has
public boolean has(Object obj)(Code)
Tells whether this associates the given key to the given value.
See Also:   JMLEqualsToObjectRelation.isDefinedAt
See Also:   JMLEqualsToObjectRelation.has(JMLEqualsObjectPair)



hashCode
public int hashCode()(Code)
Return a hash code for this object.



image
public JMLObjectSet image(JMLEqualsSet dom)(Code)
Returns a set containing all the range elements that this relation relates to the elements of the given set of domain elements.
See Also:   JMLEqualsToObjectRelation.elementImage
See Also:   JMLEqualsToObjectRelation.inverseImage
See Also:   JMLEqualsToObjectMap.apply



imagePairSet
public JMLValueSet imagePairSet()(Code)
Return the set of image set pairs that make up this relation.
See Also:   JMLEqualsToObjectRelation.imagePairs()
See Also:   JMLEqualsToObjectRelation.toSet()



imagePairs
public JMLEqualsToObjectRelationImageEnumerator imagePairs()(Code)
Return the set of domain image set pairs that make up this relation.
See Also:   JMLEqualsToObjectRelation.imagePairSet()
See Also:   JMLEqualsToObjectRelation.associations()
See Also:   JMLEqualsToObjectRelation.toSet()



insert
public JMLEqualsToObjectRelation insert(JMLEqualsObjectPair pair) throws IllegalStateException(Code)
Return a relation that is just like this relation, except that it also includes the association described by the given pair.
See Also:   JMLEqualsToObjectRelation.add



int_size
public int int_size()(Code)
Return the number of associations in this relation.



intersection
public JMLEqualsToObjectRelation intersection(JMLEqualsToObjectRelation othRel)(Code)
Return a relation that is the intersection of this and the given relation. This is the intersection of the sets of associations.
See Also:   JMLEqualsToObjectRelation.difference
See Also:   JMLEqualsToObjectRelation.union



inverse
public JMLObjectToEqualsRelation inverse()(Code)
Returns the inverse of this relation. The inverse is the relation that relates each range element to the corresponding domain element.
See Also:   JMLEqualsToObjectRelation.inverseImage
See Also:   JMLEqualsToObjectRelation.inverseElementImage



inverseElementImage
public JMLEqualsSet inverseElementImage(Object rv)(Code)
Return a set of all the domain elements that relate to the given range element.
See Also:   JMLEqualsToObjectRelation.inverseImage
See Also:   JMLEqualsToObjectRelation.inverse
See Also:   JMLEqualsToObjectRelation.elementImage



inverseImage
public JMLEqualsSet inverseImage(JMLObjectSet rng)(Code)
Return a set of all the domain elements that relate to some element in the given set of range elements.
See Also:   JMLEqualsToObjectRelation.inverseElementImage
See Also:   JMLEqualsToObjectRelation.inverse
See Also:   JMLEqualsToObjectRelation.image



isDefinedAt
public boolean isDefinedAt(Object dv)(Code)
Tells whether this relation associates any range element to the given domain element.
See Also:   JMLEqualsToObjectRelation.domain()



isEmpty
public boolean isEmpty()(Code)
Tells whether the relation is empty.
See Also:   JMLEqualsToObjectRelation.int_size()



isaFunction
public boolean isaFunction()(Code)
Tells whether this relation is a function.
See Also:   JMLEqualsToObjectMap



iterator
public JMLIterator iterator()(Code)
Returns an Iterator over the set of pairs conceptually contained in this relation..
See Also:   JMLEqualsToObjectRelation.associations()
See Also:   JMLEqualsToObjectRelation.elements()



range
public JMLObjectSet range()(Code)
Returns a set containing the range of this relation.
See Also:   JMLEqualsToObjectRelation.rangeElements()
See Also:   JMLEqualsToObjectRelation.associations()
See Also:   JMLEqualsToObjectRelation.inverseElementImage
See Also:   JMLEqualsToObjectRelation.domain()
See Also:   JMLEqualsToObjectRelation.inverse()



rangeElements
public JMLObjectSetEnumerator rangeElements()(Code)
Return a enumerator for the set that is the range of this relation. (This was formerly called "elements").
See Also:   JMLEqualsToObjectRelation.range()
See Also:   JMLEqualsToObjectRelation.domainElements()



remove
public JMLEqualsToObjectRelation remove(Object dv, Object rv)(Code)
Return a relation that is just like this relation, except that it does not contain the association, if any, between the given domain and range elements.
See Also:   JMLEqualsToObjectRelation.removeFromDomain
See Also:   JMLEqualsToObjectRelation.remove(Object,Object)
See Also:   JMLEqualsToObjectRelation.remove(JMLEqualsObjectPair)



remove
public JMLEqualsToObjectRelation remove(JMLEqualsObjectPair pair)(Code)
Return a relation that is just like this relation, except that it does not contain association described by the given pair.
See Also:   JMLEqualsToObjectRelation.remove(Object,Object)
See Also:   JMLEqualsToObjectRelation.removeFromDomain



removeFromDomain
public JMLEqualsToObjectRelation removeFromDomain(Object dv)(Code)
Return a relation that is just like this relation, except that it does not contain any association with the given domain element.
See Also:   JMLEqualsToObjectRelation.remove(JMLEqualsObjectPair)
See Also:   JMLEqualsToObjectRelation.removeFromDomain



restrictDomainTo
public JMLEqualsToObjectRelation restrictDomainTo(JMLEqualsSet dom)(Code)
Return a relation that is like this relation except that its domain is limited to just the elements of the given set.
See Also:   JMLEqualsToObjectRelation.restrictRangeTo



restrictRangeTo
public JMLEqualsToObjectRelation restrictRangeTo(JMLObjectSet rng)(Code)
Return a relation that is like this relation except that its range is limited to just the elements of the given set.
See Also:   JMLEqualsToObjectRelation.restrictDomainTo



singleton
public static JMLEqualsToObjectRelation singleton(Object dv, Object rv)(Code)
Return the singleton relation containing the given association.
See Also:   JMLEqualsToObjectRelation.singleton(JMLEqualsObjectPair)
See Also:   JMLEqualsToObjectRelation.JMLEqualsToObjectRelation(Object,Object)



singleton
public static JMLEqualsToObjectRelation singleton(JMLEqualsObjectPair pair)(Code)
Return the singleton relation containing the association described by the given pair.
See Also:   JMLEqualsToObjectRelation.singleton(Object,Object)
See Also:   JMLEqualsToObjectRelation.JMLEqualsToObjectRelation(JMLEqualsObjectPair)



toBag
public JMLValueBag toBag()(Code)
Return the bag of all associations in this relation.
See Also:   JMLEqualsToObjectRelation.toSet()
See Also:   JMLEqualsToObjectRelation.toSequence()



toFunction
public JMLEqualsToObjectMap toFunction()(Code)
Return a map that is contained in this relation. If this relation is a function, then this method can be seen as a type conversion which does not make a change to the abstract value. However, if this relation is not a function, then this method chooses a function contained in this relation from among the possibilities available.
See Also:   JMLEqualsToObjectRelation.isaFunction
See Also:   JMLEqualsToObjectMap



toSequence
public JMLValueSequence toSequence()(Code)
Return a sequence containing all associations in this relation.
See Also:   JMLEqualsToObjectRelation.toSet()
See Also:   JMLEqualsToObjectRelation.toBag()



toSet
public JMLValueSet toSet()(Code)
Return the set of all associations in this relation.
See Also:   JMLEqualsToObjectRelation.associations()
See Also:   JMLEqualsToObjectRelation.toBag()
See Also:   JMLEqualsToObjectRelation.toSequence()



toString
public String toString()(Code)
Return a string representation of this object.



union
public JMLEqualsToObjectRelation union(JMLEqualsToObjectRelation othRel) throws IllegalStateException(Code)
Return a relation that union of the this and the given relation. This is the union of the sets of associations.
See Also:   JMLEqualsToObjectRelation.difference
See Also:   JMLEqualsToObjectRelation.intersection



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.