The Meta-Environment API

nl.cwi.sen1.configapi.types.color
Class Rgb

java.lang.Object
  extended by aterm.pure.ATermVisitableImpl
      extended by aterm.pure.ATermImpl
          extended by aterm.pure.ATermApplImpl
              extended by nl.cwi.sen1.configapi.AbstractType
                  extended by nl.cwi.sen1.configapi.types.Color
                      extended by nl.cwi.sen1.configapi.types.color.Rgb
All Implemented Interfaces:
aterm.ATerm, aterm.ATermAppl, aterm.Identifiable, jjtraveler.Visitable, shared.SharedObject, shared.SharedObjectWithID

public class Rgb
extends Color


Field Summary
private static int index_blue
           
private static int index_green
           
private static int index_red
           
 
Fields inherited from class nl.cwi.sen1.configapi.AbstractType
term
 
Fields inherited from class aterm.pure.ATermImpl
factory
 
Fields inherited from interface aterm.ATerm
AFUN, APPL, BLOB, INT, LIST, LONG, PLACEHOLDER, REAL
 
Constructor Summary
Rgb(Factory factory, aterm.ATermList annos, aterm.AFun fun, aterm.ATerm[] args)
           
 
Method Summary
 shared.SharedObject duplicate()
           
 boolean equivalent(shared.SharedObject peer)
           
 int getBlue()
           
 int getGreen()
           
 int getRed()
           
 boolean hasBlue()
           
 boolean hasGreen()
           
 boolean hasRed()
           
 boolean isRgb()
           
protected  aterm.ATermAppl make(aterm.AFun fun, aterm.ATerm[] args, aterm.ATermList annos)
           
 aterm.ATermAppl setArgument(aterm.ATerm arg, int i)
           
 Color setBlue(int _blue)
           
 Color setGreen(int _green)
           
 Color setRed(int _red)
           
 aterm.ATerm toTerm()
           
 
Methods inherited from class nl.cwi.sen1.configapi.types.Color
isEqual, isSortColor
 
Methods inherited from class nl.cwi.sen1.configapi.AbstractType
getConfigapiFactory, isSortActionDescription, isSortActionDescriptionList, isSortConfiguration, isSortEvent, isSortItem, isSortItemLabels, isSortKeyModifier, isSortKeyModifierList, isSortProperty, isSortPropertyList, isSortShortCut, isSortTextAttribute, isSortTextAttributeMap, isSortTextCategoryName, isSortTextStyle, isSortVirtualButton, isSortVirtualKey, setTerm, toString
 
Methods inherited from class aterm.pure.ATermApplImpl
accept, getAFun, getArgument, getArgumentArray, getArguments, getArity, getName, getNrSubTerms, getSubTerm, getType, hashFunction, init, initHashCode, isQuoted, make, make, match, setAnnotations, setSubTerm
 
Methods inherited from class aterm.pure.ATermImpl
equals, getAnnotation, getAnnotations, getFactory, getPureFactory, getUniqueIdentifier, hasAnnotations, hashCode, init, internSetAnnotations, isEqual, match, match, removeAnnotation, removeAnnotations, setAnnotation, setHashCode, setUniqueIdentifier, writeToSharedTextFile, writeToTextFile, writeToTextFile
 
Methods inherited from class aterm.pure.ATermVisitableImpl
getChildAt, getChildCount, setChildAt
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface aterm.ATerm
equals, getAnnotation, getAnnotations, getFactory, hasAnnotations, hashCode, isEqual, match, match, removeAnnotation, removeAnnotations, setAnnotation, writeToSharedTextFile, writeToTextFile
 
Methods inherited from interface jjtraveler.Visitable
getChildAt, getChildCount, setChildAt
 
Methods inherited from interface aterm.Identifiable
getUniqueIdentifier
 

Field Detail

index_red

private static int index_red

index_green

private static int index_green

index_blue

private static int index_blue
Constructor Detail

Rgb

public Rgb(Factory factory,
           aterm.ATermList annos,
           aterm.AFun fun,
           aterm.ATerm[] args)
Method Detail

duplicate

public shared.SharedObject duplicate()
Specified by:
duplicate in interface shared.SharedObject
Overrides:
duplicate in class aterm.pure.ATermApplImpl

equivalent

public boolean equivalent(shared.SharedObject peer)
Specified by:
equivalent in interface shared.SharedObject
Overrides:
equivalent in class aterm.pure.ATermApplImpl

make

protected aterm.ATermAppl make(aterm.AFun fun,
                               aterm.ATerm[] args,
                               aterm.ATermList annos)
Overrides:
make in class aterm.pure.ATermApplImpl

toTerm

public aterm.ATerm toTerm()
Specified by:
toTerm in class AbstractType

isRgb

public boolean isRgb()
Overrides:
isRgb in class Color

hasRed

public boolean hasRed()
Overrides:
hasRed in class Color

hasGreen

public boolean hasGreen()
Overrides:
hasGreen in class Color

hasBlue

public boolean hasBlue()
Overrides:
hasBlue in class Color

getRed

public int getRed()
Overrides:
getRed in class Color

setRed

public Color setRed(int _red)
Overrides:
setRed in class Color

getGreen

public int getGreen()
Overrides:
getGreen in class Color

setGreen

public Color setGreen(int _green)
Overrides:
setGreen in class Color

getBlue

public int getBlue()
Overrides:
getBlue in class Color

setBlue

public Color setBlue(int _blue)
Overrides:
setBlue in class Color

setArgument

public aterm.ATermAppl setArgument(aterm.ATerm arg,
                                   int i)
Specified by:
setArgument in interface aterm.ATermAppl
Overrides:
setArgument in class aterm.pure.ATermApplImpl

The Meta-Environment API