ua.gradsoft.termware.transformers.general
Class IntersectionTransformer
java.lang.Object
ua.gradsoft.termware.AbstractBuildinTransformer
ua.gradsoft.termware.transformers.general.IntersectionTransformer
- All Implemented Interfaces:
- ITermTransformer
public class IntersectionTransformer
- extends AbstractBuildinTransformer
intersection($x,$y) - intersection of sets $x and $y, i. e."+
intersection({},$S) = {}
intersection({$x:$y},$S) = $x in $S ? { $x:intersection($y,$S)} : intersection($y,$S)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntersectionTransformer
public IntersectionTransformer()
transform
public Term transform(Term t,
TermSystem system,
TransformationContext ctx)
throws TermWareException
- Description copied from interface:
ITermTransformer
- attempt to transform term
t .
- Parameters:
t - - term to transformsystem - - system which give us access to ebvironment.ctx - - context of transformation.
- Returns:
- - transformed term.
- Throws:
TermWareException
static_transform
public Term static_transform(Term t,
TermSystem system,
TransformationContext ctx)
throws TermWareException
- Throws:
TermWareException
intersectionGeneral
public static Term intersectionGeneral(Term t,
TermSystem system,
TransformationContext ctx)
throws TermWareException
- Throws:
TermWareException
getName
public String getName()
- Description copied from class:
AbstractBuildinTransformer
- get name of transformer.
Default behaviour -- return the value of annotation @TransformerName binded to this.getClass().
- Specified by:
getName in interface ITermTransformer- Overrides:
getName in class AbstractBuildinTransformer
- Returns:
- name of transformer.
- See Also:
TransformerName
getDescription
public String getDescription()
- Description copied from class:
AbstractBuildinTransformer
- get description of transformer.
Default behaviour -- return the value of annotation @TransformerDescription binded to this.getClass().
- Specified by:
getDescription in interface ITermTransformer- Overrides:
getDescription in class AbstractBuildinTransformer
- See Also:
TransformerDescription