ilog.views.sdm.model
Class IlvDefaultSDMLink

java.lang.Object
  extended by ilog.views.sdm.model.IlvDefaultSDMNode
      extended by ilog.views.sdm.model.IlvDefaultSDMLink
All Implemented Interfaces:
IlvMutableSDMLink, IlvMutableSDMNode, IlvSDMLink, IlvSDMNode, Serializable

public class IlvDefaultSDMLink
extends IlvDefaultSDMNode
implements IlvMutableSDMLink, Serializable

IlvDefaultSDMLink is a simple implementation of the IlvSDMLink interface that stores the link ends in memory.

Since:
JViews 4.0
See Also:
IlvDefaultSDMModel, Serialized Form

Field Summary
 
Fields inherited from class ilog.views.sdm.model.IlvDefaultSDMNode
MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UP
 
Constructor Summary
IlvDefaultSDMLink(String tag)
          Creates a new link with a null source and destination.
 
Method Summary
 IlvSDMNode getFrom()
          Returns the source of the link.
 IlvSDMNode getTo()
          Returns the destination of the link.
 void setFrom(IlvSDMNode from)
          Sets the source of this link.
 void setTo(IlvSDMNode to)
          Sets the destination of this link.
 
Methods inherited from class ilog.views.sdm.model.IlvDefaultSDMNode
addChild, getChildren, getChildrenCount, getID, getParent, getProperty, getPropertyNames, getTag, removeChild, setID, setParent, setProperty, shiftChild, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.sdm.model.IlvMutableSDMNode
addChild, removeChild, setID, setParent, setProperty
 
Methods inherited from interface ilog.views.sdm.model.IlvSDMNode
getChildren, getID, getParent, getProperty, getPropertyNames, getTag
 
Methods inherited from interface ilog.views.sdm.model.IlvSDMNode
getChildren, getID, getParent, getProperty, getPropertyNames, getTag
 

Constructor Detail

IlvDefaultSDMLink

public IlvDefaultSDMLink(String tag)
Creates a new link with a null source and destination.

Parameters:
tag - The symbolic type of the object.
Method Detail

setFrom

public void setFrom(IlvSDMNode from)
Sets the source of this link.

Specified by:
setFrom in interface IlvMutableSDMLink
Parameters:
from - The new source of the link.

getFrom

public IlvSDMNode getFrom()
Returns the source of the link.

Specified by:
getFrom in interface IlvSDMLink

setTo

public void setTo(IlvSDMNode to)
Sets the destination of this link.

Specified by:
setTo in interface IlvMutableSDMLink
Parameters:
to - The new destination of the link.

getTo

public IlvSDMNode getTo()
Returns the destination of the link.

Specified by:
getTo in interface IlvSDMLink


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.