org.fopps.model
Class ProjectRelation

java.lang.Object
  |
  +--org.fopps.model.AbstractItem
        |
        +--org.fopps.model.Relation
              |
              +--org.fopps.model.ProjectRelation

public class ProjectRelation
extends Relation

A ProjectRelation represents a connection between projects. The rationale behind a relation is a project (normally a product build out of core assets) can fetch the features from it's founding assets. Another point are scheduling issues. If a project have to postpone (= daily business ;-), the dependent projects may also finish later.

Author:
Oliver Wieland

Field Summary
 
Fields inherited from class org.fopps.model.Relation
from, to
 
Fields inherited from class org.fopps.model.AbstractItem
ADDED_EVENT, CHANGE_EVENT, name, REMOVED_EVENT
 
Constructor Summary
ProjectRelation(AbstractItem pFrom, AbstractItem pTo)
           
 
Method Summary
 boolean accept(AbstractItem pItem)
          Checks, if the given objects are accepted by the relation.
 boolean isCritical()
          Returns always false @TODO
 java.lang.String toString()
           
 
Methods inherited from class org.fopps.model.Relation
disconnect, getFrom, getTo, isGhost, isValid, loopAllowed, saveUndoOnDisconnect, setAllowLoop, setFrom, setGhost, setTo
 
Methods inherited from class org.fopps.model.AbstractItem
addIncoming, addListener, addOutgoing, commitGhostRelations, containsType, copyAttributes, delete, filterElements, fireItemAdded, fireItemChanged, fireItemRemoved, getConstraints, getDescription, getIncoming, getIncomingConstraints, getListeners, getName, getOutgoing, getOutgoingConstraints, getRelationTo, hasConstraints, isBlockEvents, isConnectedWith, notifyListeners, removeAllConstraints, removeAllIncoming, removeAllListener, removeAllOutgoing, removeAllRelations, removeGhostRelations, removeIncoming, removeListener, removeOutgoing, removeRelationTo, setBlockEvents, setDescription, setIncoming, setName, setOutgoing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectRelation

public ProjectRelation(AbstractItem pFrom,
                       AbstractItem pTo)
                throws InvalidRelationException
Method Detail

isCritical

public boolean isCritical()
Returns always false @TODO


accept

public boolean accept(AbstractItem pItem)
Checks, if the given objects are accepted by the relation. Subclasses may override this method to ensure consistency. The default returns always true.

Overrides:
accept in class Relation

toString

public java.lang.String toString()
Overrides:
toString in class Relation


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.