com.sri.emo.dbobj.model_tree
Class ModelFillStatus

java.lang.Object
  extended by com.sri.emo.dbobj.model_tree.ModelFillStatus

public final class ModelFillStatus
extends Object

A pseudo enumeration type for defining status of the model tree in terms of filled out slots.

Version:
1.0
Author:
Michael Rimov

Field Summary
static ModelFillStatus COMPLETE
          All slots in the model (Parts) have values.
static ModelFillStatus EMPTY
          No slots in the model have values.
static ModelFillStatus PARTIALLY_FILLED
          Some slots in the model have values.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 ModelFillStatus intersect(ModelFillStatus other)
          Since ModelStatus represents a completion.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPLETE

public static final ModelFillStatus COMPLETE
All slots in the model (Parts) have values.


PARTIALLY_FILLED

public static final ModelFillStatus PARTIALLY_FILLED
Some slots in the model have values.


EMPTY

public static final ModelFillStatus EMPTY
No slots in the model have values.

Method Detail

toString

public String toString()

Overrides:
toString in class Object
Returns:
String

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

intersect

public ModelFillStatus intersect(ModelFillStatus other)
Since ModelStatus represents a completion. When intersecting the different model statuses, we gain what the resulting model status is. For example: Empty.intersect(COMPLETE) == PARTIALLY_FILLED and COMPLETE.intersect(COMPLETE) == COMPLETE

Parameters:
other - ModelStatus
Returns:
ModelStatus


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.