edu.stanford.smi.protege.model
Class FrameID
java.lang.Object
edu.stanford.smi.protege.model.FrameID
- All Implemented Interfaces:
- Serializable
public class FrameID
- extends Object
- implements Serializable
A wrapper around a numeric value that uniquely identifies the frame. The frame name also uniquely identifies it but
the frame id is unchanging, unlike the name. This frame id is typically not used much by clients but it is used
internally. For file based projects the frame id is only unchanging while the project is loaded. The next time it is
loaded the frames will all get other ids. The frame ids are not stored in the files. For the database backend the
frame ids are unchanging because they are store in the database.
Frame ids below 10000 are reserved for system frames. The particular ids assigned to system frame are available in
Model
- Author:
- Ray Fergerson
- See Also:
- Serialized Form
NULL_FRAME_ID_VALUE
public static final int NULL_FRAME_ID_VALUE
- See Also:
- Constant Field Values
NULL_FRAME_ID_LOCAL_VALUE
public static final int NULL_FRAME_ID_LOCAL_VALUE
- See Also:
- Constant Field Values
INITIAL_USER_FRAME_ID
public static final int INITIAL_USER_FRAME_ID
- See Also:
- Constant Field Values
SYSTEM_PROJECT_ID
public static final int SYSTEM_PROJECT_ID
- See Also:
- Constant Field Values
LOCAL_PROJECT_ID
public static final int LOCAL_PROJECT_ID
- See Also:
- Constant Field Values
NULL_FRAME_ID_PROJECT_VALUE
public static final int NULL_FRAME_ID_PROJECT_VALUE
- See Also:
- Constant Field Values
FrameID
public FrameID()
allocateMemoryProjectPart
public static int allocateMemoryProjectPart()
createSystem
public static FrameID createSystem(int value)
createLocal
public static FrameID createLocal(int memoryProjectPart,
int localPart)
createLocal
public static FrameID createLocal(int value)
create
public static FrameID create(int diskProjectPart,
int memoryProjectPart,
int localPart)
toStringRepresentation
public static String toStringRepresentation(FrameID id)
toStringRepresentation
public String toStringRepresentation()
fromStringRepresentation
public static FrameID fromStringRepresentation(int memoryProjectPart,
String text)
isSystem
public boolean isSystem()
getLocalPart
public int getLocalPart()
getMemoryProjectPart
public int getMemoryProjectPart()
getDiskProjectPart
public int getDiskProjectPart()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
isUser
public boolean isUser()
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2007 Stanford University.