@NotThreadSafe public final class PointInput extends Object implements PointRelation
Constructor and Description |
---|
PointInput(PointEntity inputPoint,
PointEntity resultPoint)
Creates an instance.
|
PointInput(PointInput original)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addBehaviorEntity(BehaviorEntity behaviorEntity)
Adds a behavior entity to this relation.
|
boolean |
equals(Object other) |
Point |
getInputPoint()
Gets the input point definition.
|
PointEntity |
getInputPointEntity()
Gets the input point entity.
|
Params |
getParams()
Gets the params.
|
Optional<Behavior> |
getPrimaryBehavior()
Gets the primary behavior.
|
Point |
getResultPoint()
Gets the result point definition.
|
PointEntity |
getResultPointEntity()
Gets the result point entity.
|
Optional<Sync> |
getSync()
Gets a sync object for this.
|
Optional<SyncEntity> |
getSyncEntity()
Gets the sync entity.
|
int |
hashCode() |
boolean |
isControl()
Asks if this is a control input.
|
void |
setControl(boolean control)
Sets the control input indicator.
|
void |
setInputPoint(Point point)
Sets a new input point.
|
void |
setParams(Optional<Params> params)
Sets the params.
|
void |
setResultPoint(Point point)
Sets a new result point.
|
void |
setSyncEntity(Optional<SyncEntity> syncEntity)
Sets the sync entity.
|
boolean |
setUp(Metadata metadata,
Optional<TransformEntity.Arg> arg)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
public PointInput(@Nonnull PointInput original)
original
- The original point input.public PointInput(@Nonnull PointEntity inputPoint, @Nonnull PointEntity resultPoint)
inputPoint
- The point entity providing inputs.resultPoint
- The point entity holding results.public void addBehaviorEntity(@Nonnull BehaviorEntity behaviorEntity)
behaviorEntity
- The behavior entity.public boolean equals(Object other)
equals
in class Object
public Point getInputPoint()
getInputPoint
in interface PointRelation
@Nonnull @CheckReturnValue public PointEntity getInputPointEntity()
public Params getParams()
getParams
in interface PointRelation
@Nonnull @CheckReturnValue public Optional<Behavior> getPrimaryBehavior()
public Point getResultPoint()
getResultPoint
in interface PointRelation
@Nonnull @CheckReturnValue public PointEntity getResultPointEntity()
public Optional<Sync> getSync()
getSync
in interface PointRelation
@Nonnull @CheckReturnValue public Optional<SyncEntity> getSyncEntity()
public int hashCode()
hashCode
in class Object
@CheckReturnValue public boolean isControl()
public void setControl(boolean control)
control
- The control input indicator.public void setInputPoint(@Nonnull Point point)
point
- The new input point.public void setParams(@Nonnull Optional<Params> params)
params
- The optional params.public void setResultPoint(@Nonnull Point point)
point
- The new result point.public void setSyncEntity(@Nonnull Optional<SyncEntity> syncEntity)
syncEntity
- The optional sync entity.@CheckReturnValue public boolean setUp(@Nonnull Metadata metadata, @Nonnull Optional<TransformEntity.Arg> arg)
metadata
- The metadata.arg
- The optional corresponding transform argument.public void tearDown()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.