Package net.officefloor.model.section
Class FunctionToNextFunctionModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.section.FunctionToNextFunctionModel
-
- All Implemented Interfaces:
ConnectionModel
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class FunctionToNextFunctionModel extends AbstractModel implements ConnectionModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionToNextFunctionModel.FunctionToNextFunctionEvent
-
Constructor Summary
Constructors Constructor Description FunctionToNextFunctionModel()
Default constructor.FunctionToNextFunctionModel(java.lang.String nextFunctionName)
Convenience constructor for new non-linked instance.FunctionToNextFunctionModel(java.lang.String nextFunctionName, int x, int y)
Convenience constructor for new non-linked instance allowing XY initialising.FunctionToNextFunctionModel(java.lang.String nextFunctionName, FunctionModel previousFunction, FunctionModel nextFunction)
Convenience constructor.FunctionToNextFunctionModel(java.lang.String nextFunctionName, FunctionModel previousFunction, FunctionModel nextFunction, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
Connects to theAbstractModel
instances.FunctionModel
getNextFunction()
java.lang.String
getNextFunctionName()
FunctionModel
getPreviousFunction()
boolean
isRemovable()
Indicates if this connection is removable.void
remove()
Removes connection to theAbstractModel
instances.void
setNextFunction(FunctionModel nextFunction)
void
setNextFunctionName(java.lang.String nextFunctionName)
void
setPreviousFunction(FunctionModel previousFunction)
-
Methods inherited from class net.officefloor.model.AbstractModel
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.model.Model
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
-
-
-
-
Constructor Detail
-
FunctionToNextFunctionModel
public FunctionToNextFunctionModel()
Default constructor.
-
FunctionToNextFunctionModel
public FunctionToNextFunctionModel(java.lang.String nextFunctionName)
Convenience constructor for new non-linked instance.- Parameters:
nextFunctionName
- Next function name.
-
FunctionToNextFunctionModel
public FunctionToNextFunctionModel(java.lang.String nextFunctionName, int x, int y)
Convenience constructor for new non-linked instance allowing XY initialising.- Parameters:
nextFunctionName
- Next function name.x
- Horizontal location.y
- Vertical location.
-
FunctionToNextFunctionModel
public FunctionToNextFunctionModel(java.lang.String nextFunctionName, FunctionModel previousFunction, FunctionModel nextFunction)
Convenience constructor.- Parameters:
nextFunctionName
- Next function name.previousFunction
- Previous function.nextFunction
- Next function.
-
FunctionToNextFunctionModel
public FunctionToNextFunctionModel(java.lang.String nextFunctionName, FunctionModel previousFunction, FunctionModel nextFunction, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
nextFunctionName
- Next function name.previousFunction
- Previous function.nextFunction
- Next function.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getNextFunctionName
public java.lang.String getNextFunctionName()
- Returns:
- Next function name.
-
setNextFunctionName
public void setNextFunctionName(java.lang.String nextFunctionName)
- Parameters:
nextFunctionName
- Next function name.
-
getPreviousFunction
public FunctionModel getPreviousFunction()
- Returns:
- Previous function.
-
setPreviousFunction
public void setPreviousFunction(FunctionModel previousFunction)
- Parameters:
previousFunction
- Previous function.
-
getNextFunction
public FunctionModel getNextFunction()
- Returns:
- Next function.
-
setNextFunction
public void setNextFunction(FunctionModel nextFunction)
- Parameters:
nextFunction
- Next function.
-
isRemovable
public boolean isRemovable()
Description copied from interface:ConnectionModel
Indicates if this connection is removable.- Specified by:
isRemovable
in interfaceConnectionModel
- Returns:
- Indicates if removable.
-
connect
public void connect()
Connects to theAbstractModel
instances.- Specified by:
connect
in interfaceConnectionModel
-
remove
public void remove()
Removes connection to theAbstractModel
instances.- Specified by:
remove
in interfaceConnectionModel
-
-