public class Animation extends Object
| Constructor and Description |
|---|
Animation()
Creates an empty Animation.
|
Animation(org.jflux.api.common.rk.config.VersionProperty version)
Creates an Animation with the given VersionProperty.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAddOn(org.jflux.api.common.rk.services.addon.ServiceAddOn<org.jflux.api.common.rk.playable.Playable> addOn) |
void |
addChannel(Channel channel)
Adds a given Channel for the given servo parameters.
|
void |
addChannels(List<Channel> channels)
Adds a list of Channels.
|
Animation |
clone()
Returns a deep copy of the Animation.
|
CompiledMap |
compileMap(long start,
long end,
long stepLength)
Creates a composite CompiledPath from all MotionPaths for given times.
|
boolean |
containsLogicalId(int id)
Returns true if there exists a channel for the given id.
|
boolean |
equals(Object obj) |
List<org.jflux.api.common.rk.services.addon.ServiceAddOn<org.jflux.api.common.rk.playable.Playable>> |
getAddOns() |
Channel |
getChannel(int id)
Returns the Channel for id, ordered by when the Channels were added.
|
Channel |
getChannelByLogicalId(int id)
Returns the Channel for the given id.
|
List<Channel> |
getChannels()
Returns a set of entries of servo ids and Channels
|
CompiledMap |
getCompiledMap(long stepLength)
Creates a CompiledMap from contained Channels' CompiledPaths.
|
Set<Map.Entry<Integer,Channel>> |
getEntrySet()
Returns a set of entries of servo ids and Channels
|
long |
getLength() |
Long |
getStartTime()
Returns the start time
|
Long |
getStopTime()
Returns the stop time
|
List<SyncPointGroupConfig.SyncGroupConfig> |
getSyncGroupConfigs() |
org.jflux.api.common.rk.config.VersionProperty |
getVersion()
Returns The Animation's Version.
|
int |
hashCode() |
void |
insertChannel(int i,
Channel channel)
Adds a given Channel for the given servo parameters, and orders it by the given index.
|
void |
removeAddOn(org.jflux.api.common.rk.services.addon.ServiceAddOn<org.jflux.api.common.rk.playable.Playable> addOn) |
Channel |
removeChannelByListOrder(int i)
Removes the ith Channel, ordered by when the channels were added.
|
Channel |
removeChannelByLogicalId(int logicalId)
Removes the Channel with the given logical id.
|
void |
setStartTime(Long time)
Sets the start time
|
void |
setStopTime(Long time)
Sets the stop time
|
void |
setSyncGroupConfigs(List<SyncPointGroupConfig.SyncGroupConfig> configs) |
void |
setVersion(String name,
String versionNumber)
Set the Animation's Version with the given name and version number.
|
public Animation()
public Animation(org.jflux.api.common.rk.config.VersionProperty version)
version - the Animation's Versionpublic org.jflux.api.common.rk.config.VersionProperty getVersion()
public void setVersion(String name, String versionNumber)
name - the Animations new nameversionNumber - the Animations new version numberpublic void addChannel(Channel channel) throws IllegalArgumentException
channel - Channel to addIllegalArgumentException - if servo id has already been addedNullPointerException - if channel is nullpublic void addChannels(List<Channel> channels) throws NullPointerException
channels - Channels to addNullPointerException - if channels is nullpublic void setStartTime(Long time)
time - start timepublic Long getStartTime()
public void setStopTime(Long time)
time - stop timepublic Long getStopTime()
public void insertChannel(int i,
Channel channel)
throws IllegalArgumentException
channel - Channel to addi - the index to insert the channelIllegalArgumentException - if servo id has already been addedNullPointerException - if channel is nullpublic boolean containsLogicalId(int id)
id - servo idpublic Channel getChannel(int id)
id - for Channelpublic Channel getChannelByLogicalId(int id)
id - Servo id for Channelpublic Set<Map.Entry<Integer,Channel>> getEntrySet()
public List<Channel> getChannels()
public Channel removeChannelByListOrder(int i)
i - the index of the channel to removepublic Channel removeChannelByLogicalId(int logicalId)
logicalId - the logicalId of the Channel to removepublic CompiledMap getCompiledMap(long stepLength)
stepLength - milliseconds between positionspublic CompiledMap compileMap(long start, long end, long stepLength)
start - path start timeend - path end timestepLength - milliseconds between positionspublic long getLength()
public void setSyncGroupConfigs(List<SyncPointGroupConfig.SyncGroupConfig> configs)
public List<SyncPointGroupConfig.SyncGroupConfig> getSyncGroupConfigs()
public Animation clone()
public void addAddOn(org.jflux.api.common.rk.services.addon.ServiceAddOn<org.jflux.api.common.rk.playable.Playable> addOn)
public void removeAddOn(org.jflux.api.common.rk.services.addon.ServiceAddOn<org.jflux.api.common.rk.playable.Playable> addOn)
public List<org.jflux.api.common.rk.services.addon.ServiceAddOn<org.jflux.api.common.rk.playable.Playable>> getAddOns()
Copyright © 2011-2016. All Rights Reserved.