gov.nasa.arc.brahms.common.data
Interface Type

All Superinterfaces:
gov.nasa.arc.brahms.common.IConstants
All Known Implementing Classes:
ActiveClass, ActiveConcept, ActiveInstance, Agent, Area, AreaDef, CollectionType, Concept, ConceptualClass, ConceptualConcept, ConceptualInstance, Current, GeographyConcept, Group, JavaType, MetaType, ObjectClass, ObjectInstance, Path, UnknownType, ValueType, VMAgent, VMArea, VMAreaDef, VMConceptualClass, VMConceptualInstance, VMGroup, VMObjectClass, VMObjectInstance, VMPath

public interface Type
extends gov.nasa.arc.brahms.common.IConstants

This interface defines a generic interface for types used in the Brahms language.

Version:
4 April 2000
Author:
Ron van Hoof

Field Summary
 
Fields inherited from interface gov.nasa.arc.brahms.common.IConstants
ABORT, ACTIVECLASS, ACTIVECONCEPT, ACTIVEINSTANCE, AGENT, ANONYMOUS, ANYAGENT, AREA, AREADEF, ASSIGNED, ATTRIBUTE, BASEAREADEF, BASECLASS, BASECONCEPTUALCLASS, BASEGROUP, BASELIBRARY, BOOLEAN, BROADCAST, BUILDING, BYTE, CCLOCK, CDATE, CHAR, CITY, CLASS, CLOCK, COLLECTALL, COMMUNICATE, COMPLETE, COMPOSITE, COMPUTER, CONCEPT, CONCEPTUALCLASS, CONCEPTUALCONCEPT, CONCEPTUALOBJECT, CONTINUE, COPY, CREATEAGENT, CREATEAREA, CREATEOBJECT, current, CURRENT, DATAFRAME, DATE, DB, DETECTABLE, DIV, DOUBLE, EMAIL, EMPTY_STRING, END, ENDACTIVITY, ENTAGENT, EQ, EXCEPTION, EXPR, FACE2FACE, FACTFRAME, FALSE, FAX, FLOAT, FOREACH, FORONE, G2, GE, GEOGRAPHYCONCEPT, GESTURE, GET, GROUP, GT, IMPASSE, INT, INVALID, JAVA, JAVA_TYPE, KNOWN_MODIFIER, KNOWNVAL_MODIFIER, LE, LOCAL, LONG, LT, MAP, MINUS, MOD, MOVE, MULT, NE, NEW, NONE, NOT_MODIFIER, NOWORK, O, OA, OBJECT, ONTOLOGY, PAGER, PARAMETER, PATH, PHONE, PLUS, PRIMITIVE, PRIVATE, PROAGENT, PROTECTED, PRSAGENT, PUBLIC, PUT, RECEIVE, RELATION, sACTIVECLASS, sACTIVECONCEPT, sACTIVEINSTANCE, sAGENT, sARCHIVE, sAREA, sAREADEF, sBOOLEAN, sBYTE, sBYTECODEEXT, sCHAR, sCLASS, sCOMPUTER, sCONCEPT, sCONCEPTUALCLASS, sCONCEPTUALCONCEPT, sCONCEPTUALOBJECT, sCOPY, sCURRENT, sDETECTABLE, sDOUBLE, sEMAIL, sEND, SEND, sFACE2FACE, sFAX, sFILEEXT, sFLOAT, sGEOGRAPHYCONCEPT, sGROUP, SHORT, SIMAGENT, sINT, sJAVA_TYPE, sLONG, sMAP, sNEW, sNONE, sNOWORK, sOBJECT, SOURCECODE, sPAGER, sPARAMETER, sPATH, sPHONE, sPRIVATE, sPROJECTEXT, sPROTECTED, sPUBLIC, sSHORT, sSTART, sSTRING, sSYMBOL, START, STRING, sUNKNOWN, sVOID, SYMBOL, TRUE, UDT, UML, UNASSIGNED, UNDEFINED, unknown, UNKNOWN, UNKNOWN_MODIFIER, V, VARIABLE, VOID, WHENEVER, WORKFRAME, WORLD, XML
 
Method Summary
 boolean compareTypes(Type type, boolean target)
          This method compares this type with the given type and checks based on the target flag whether the types can be converted to one another.
 java.lang.String getFullyQualifiedName()
          Returns the fully qualified name of the type.
 java.lang.String getName()
          Returns the name or String representation of the type
 int getSerialNumber()
          Returns the serial number assigned to this type if any.
 int getType()
          Returns the type represented by this type.
 

Method Detail

getType

int getType()
Returns the type represented by this type.

Returns:
int the represented type

getName

java.lang.String getName()
Returns the name or String representation of the type

Returns:
String the String representation

getSerialNumber

int getSerialNumber()
Returns the serial number assigned to this type if any.

Returns:
int the serial number of the type

getFullyQualifiedName

java.lang.String getFullyQualifiedName()
Returns the fully qualified name of the type.

Returns:
String the fully qualified name

compareTypes

boolean compareTypes(Type type,
                     boolean target)
This method compares this type with the given type and checks based on the target flag whether the types can be converted to one another. If target is true this method checks if the given type can be converted to or is compatible with this type. If target is false this method checks whether this type can be converted to or is compatible with the given type.

Parameters:
type - the type to compare this type with
target - true if this type is the target false if the given type ios the target
Returns:
boolean an true if the types are compatible, false otherwise


Copyright © 1997-2012 All Rights Reserved.