|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.util.cg.ComposedType
Title: util.cg.ComposedType Class
Description: An auxiliary class used to represent composed type; a special case of type, used especially in the context of SYNERGY
Copyright : Copyright (c) Adil KABBAJ 2004-2009
Field Summary |
Constructor Summary | |
ComposedType(java.lang.Object m,
Identifier mtd)
|
Method Summary | |
void |
clear()
Clear the content of the object |
java.lang.Object |
clone()
Return a clone of the object without considering binding context and resolution. |
java.lang.Object |
clone(BindingContext bindContext,
java.lang.Object bindInf)
Clone the object, taking into account the presence of variable and the binding context and resolution. |
ComposedType |
copy()
|
boolean |
equal(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Check that the current object is equal with the specified object obj. |
boolean |
equal(java.lang.Object obj)
Check that the current object is equal with the specified object obj. |
boolean |
equals(java.lang.Object obj)
|
void |
finalize()
Finalize the object |
java.lang.Object |
generalize(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Perform a generalization of the current object with the specified object obj, to determine what is common to the two objects. |
java.lang.Object |
generalize(java.lang.Object obj)
Perform a generalization of the current object with the specified object obj, to determine what is common to the two objects. |
java.lang.Object |
getMessenger()
|
Identifier |
getMethodIdent()
|
void |
getVariables(java.util.ArrayList varsIdent)
This method adds in the specified varsIdent all the variables used in the object. |
static boolean |
isComposedType(java.lang.Object obj)
|
java.lang.Object |
match(byte matchOperation,
BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Match the current object with the specified object obj, according to the value of the parameter matchOperation. |
java.lang.Object |
match(byte matchOperation,
java.lang.Object obj)
Match the current object with the specified object obj, according to the value of the parameter matchOperation. |
java.lang.Object |
maximalJoin(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Perform a maximal join of the current object with the specified object obj. |
java.lang.Object |
maximalJoin(java.lang.Object obj)
Perform a maximal join of the current object with the specified object obj. |
void |
setMessenger(java.lang.Object m)
|
void |
setMethodIdent(Identifier mtd)
|
boolean |
subsume(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Check that the current object subsumes (is more general than) the specified object obj. |
boolean |
subsume(java.lang.Object obj)
Check that the current object subsumes (is more general than) the specified object obj. |
java.lang.Object |
subsumeWithResult(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Check that the current object subsumes (is more general than) the specified object obj. |
java.lang.Object |
subsumeWithResult(java.lang.Object obj)
Check that the current object subsumes (is more general than) the specified object obj. |
java.lang.String |
toString()
|
java.lang.String |
toString(BindingContext bindContext,
java.lang.Object bindInf,
Lexicon lexicon)
Return the textual formulation of an object, taking into account the presence of variable and the binding context and resolution. |
java.lang.String |
toString(Lexicon lexicon)
|
boolean |
unify(BindingContext bindContext,
java.lang.Object bindInf,
java.lang.Object obj,
java.lang.Object bindInfObj)
Unify the current object with the specified object obj. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComposedType(java.lang.Object m, Identifier mtd)
Method Detail |
public ComposedType copy()
public void clear()
AmineObject
clear
in interface AmineObject
public static boolean isComposedType(java.lang.Object obj)
public void finalize()
finalize
in interface AmineObject
public boolean equals(java.lang.Object obj)
public java.lang.String toString(BindingContext bindContext, java.lang.Object bindInf, Lexicon lexicon) throws ToStringException
AmineObject
toString
in interface AmineObject
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and to the current objectlexicon
- The lexicon to use during the textual formulation of the current object
ToStringException
- if an error occurs during the textual formulation
of the current object.public java.lang.String toString()
public java.lang.String toString(Lexicon lexicon)
toString
in interface ToString
public java.lang.Object clone(BindingContext bindContext, java.lang.Object bindInf)
AmineObject
clone
in interface AmineObject
bindContext
- The Binding contextbindInf
- The binding information related to the binding context and to the object
public java.lang.Object clone()
AmineObject
clone
in interface AmineObject
public void getVariables(java.util.ArrayList varsIdent)
AmineObject
getVariables
in interface AmineObject
varsIdent
- : an ArrayList of Variable objectspublic java.lang.Object match(byte matchOperation, BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
match
in interface Matching
matchOperation
- A byte value that specifies which kind of matching to apply.
Atually, these values are defined in AmineConstants interface and are: EQUAL,
UNIFY, SUBSUME, SUBSUME_WITH_RSLT, MAXIMAL_JOIN, and GENERALIZE.bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to match with the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object match(byte matchOperation, java.lang.Object obj)
Matching
match
in interface Matching
matchOperation
- A byte value that specifies which kind of matching to applyobj
- The object to match with the current object
public java.lang.Object maximalJoin(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
maximalJoin
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to join with the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object maximalJoin(java.lang.Object obj)
Matching
maximalJoin
in interface Matching
obj
- The object to join with the current object
public boolean subsume(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
subsume
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to check its subsumption by the current objectbindInfObj
- The binding information for the parameter obj
public boolean subsume(java.lang.Object obj)
Matching
subsume
in interface Matching
obj
- The object to check its subsumption by the current object
public java.lang.Object subsumeWithResult(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
subsumeWithResult
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to check its subsumption by the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object subsumeWithResult(java.lang.Object obj)
Matching
subsumeWithResult
in interface Matching
obj
- The object to check its subsumption by the current object
public boolean unify(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
unify
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to unify with the current objectbindInfObj
- The binding information for the parameter obj
public boolean equal(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
equal
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to check the equality with the current objectbindInfObj
- The binding information for the parameter obj
public boolean equal(java.lang.Object obj)
Matching
equal
in interface Matching
obj
- The object to check the equality with the current object
public java.lang.Object generalize(BindingContext bindContext, java.lang.Object bindInf, java.lang.Object obj, java.lang.Object bindInfObj)
Matching
generalize
in interface Matching
bindContext
- The binding contextbindInf
- The binding information for the current objectobj
- The object to generalize with the current objectbindInfObj
- The binding information for the parameter obj
public java.lang.Object generalize(java.lang.Object obj)
Matching
generalize
in interface Matching
obj
- The object to generalize with the current object
public java.lang.Object getMessenger()
public void setMessenger(java.lang.Object m)
public Identifier getMethodIdent()
public void setMethodIdent(Identifier mtd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |