|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.property.PropertyChangeNotifier
org.robokind.api.motion.jointgroup.DefaultJointGroupConfig<Id,GroupConfig>
Id
- type used to identify JointsGroupConfig
- JointGroupConfig used to create children JointGroupspublic class DefaultJointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
Default implementation of a JointGroupConfig
Field Summary |
---|
Fields inherited from interface org.robokind.api.motion.jointgroup.JointGroupConfig |
---|
PROP_ADD_JOINT_GROUP, PROP_ADD_JOINT_ID, PROP_ENABLED, PROP_NAME, PROP_REMOVE_JOINT_GROUP, PROP_REMOVE_JOINT_ID |
Constructor Summary | |
---|---|
DefaultJointGroupConfig(String name)
Creates an empty DefaultJointGroupConfig with the given name. |
|
DefaultJointGroupConfig(String name,
List<? extends Id> ids,
List<? extends GroupConfig> groups)
Creates a new DefaultJointGroupConfig with the given values |
Method Summary | |
---|---|
void |
addGroup(GroupConfig group)
Add a child JointGroupConfig. |
void |
addJointId(Id jointId)
Adds a JointId to the JointGroupConfig |
boolean |
getEnabled()
Returns the default enabled state |
int |
getGroupCount()
Return the number of child JointGroupConfigs. |
int |
getJointCount()
Returns the number of JointIds for this JointGroupConfig. |
GroupConfig |
getJointGroup(int index)
Returns the child JointGroupConfig at the given index. |
List<GroupConfig> |
getJointGroups()
Returns a List of the children JointGroupConfigs. |
Id |
getJointId(int index)
Returns the JointId at the given index. |
List<Id> |
getJointIds()
Returns a List of JointIds for this JointGroup |
String |
getName()
Returns the name to use |
void |
insertGroup(GroupConfig group,
int index)
Add a child JointGroupConfig at the given index. |
void |
insertJointId(Id jointId,
int index)
Adds a JointId at the given index |
void |
removeGroup(GroupConfig group)
Removes a child JointGroupConfig. |
void |
removeGroupAt(int index)
Removes a child JointGroupConfig at the given index. |
void |
removeJointId(Id jointId)
Removes a JointId |
void |
removeJointIdAt(int index)
Removes the JointId with the given index. |
void |
setEnabled(boolean enabled)
Sets the default enabled state of the JointGroup |
void |
setName(String name)
Sets the name of the JointGroup |
String |
toString()
|
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier |
---|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public DefaultJointGroupConfig(String name)
name
- name for the JointGrouppublic DefaultJointGroupConfig(String name, List<? extends Id> ids, List<? extends GroupConfig> groups)
name
- name for the JointGroupids
- initial JointIdsgroups
- initial child JointGroupConfigsMethod Detail |
---|
public void setName(String name)
JointGroupConfig
setName
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
name
- new name to usepublic String getName()
JointGroupConfig
getName
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
public void setEnabled(boolean enabled)
JointGroupConfig
setEnabled
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
enabled
- default enabled state to usepublic boolean getEnabled()
JointGroupConfig
getEnabled
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
public void addJointId(Id jointId)
JointGroupConfig
addJointId
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
jointId
- id to addpublic void insertJointId(Id jointId, int index)
JointGroupConfig
insertJointId
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
jointId
- id to addindex
- index for the jointIdpublic void removeJointId(Id jointId)
JointGroupConfig
removeJointId
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
jointId
- id to removepublic void removeJointIdAt(int index)
JointGroupConfig
removeJointIdAt
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
index
- position of the JointId in this JointGroupConfig's JointIdspublic List<Id> getJointIds()
JointGroupConfig
getJointIds
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
public Id getJointId(int index)
JointGroupConfig
getJointId
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
index
- position of the JointId in the JointGroupConfig's JointIds
public int getJointCount()
JointGroupConfig
getJointCount
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
public void addGroup(GroupConfig group)
JointGroupConfig
addGroup
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
group
- child JointGroupConfig to addpublic void insertGroup(GroupConfig group, int index)
JointGroupConfig
insertGroup
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
group
- child JointGroupConfig to addindex
- position to add the childpublic void removeGroup(GroupConfig group)
JointGroupConfig
removeGroup
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
group
- the child to removepublic void removeGroupAt(int index)
JointGroupConfig
removeGroupAt
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
index
- position of the child to removepublic List<GroupConfig> getJointGroups()
JointGroupConfig
getJointGroups
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
public GroupConfig getJointGroup(int index)
JointGroupConfig
getJointGroup
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
index
- position to the child to remove
public int getGroupCount()
JointGroupConfig
getGroupCount
in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |