org.qedeq.kernel.bo.logic.model
Class Entity

java.lang.Object
  extended by org.qedeq.kernel.bo.logic.model.Entity

public final class Entity
extends java.lang.Object

One entity in our model.

Author:
Michael Meyling

Constructor Summary
Entity(int value, java.lang.String display, java.lang.String description)
          Constructor.
 
Method Summary
 java.lang.String getDescription()
          Get description.
 int getValue()
          Get value.
 java.lang.String toString()
          Get display text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entity

public Entity(int value,
              java.lang.String display,
              java.lang.String description)
Constructor.

Parameters:
value - This can be used for calculating truth or other values. Each value should be unique to an entity.
display - Show this to represent the entity within outputs.
description - Description for this entity.
Method Detail

getValue

public int getValue()
Get value. This can be used for calculating truth or other values. Each value should be unique to an entity.

Returns:
Unique value for this entity.

toString

public java.lang.String toString()
Get display text.

Overrides:
toString in class java.lang.Object
Returns:
Representation of this entity for textual output.

getDescription

public java.lang.String getDescription()
Get description.

Returns:
Description of this entity.


Copyright © 2014. All Rights Reserved.