Package org.neuroml.model.util
Class CellUtils
java.lang.Object
org.neuroml.model.util.CellUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublestatic BiophysicalPropertiesgetCellBiophysicalProperties(Cell cell, NeuroMLDocument nml2doc) static MorphologygetCellMorphology(Cell cell, NeuroMLDocument nml2doc) static doublegetFractionAlongSegGroupLength(Cell cell, String segmentGroup, int segmentId, float fractAlongSegment) static doublegetFractionAlongSegGroupLength(Cell cell, NeuroMLDocument nml2doc, String segmentGroup, int segmentId, float fractAlongSegment) static LinkedHashMap<Integer,Segment> getIdsVsSegments(Cell cell) Deprecated.use getIdsVsSegments(Cell cell, NeuroMLDocument nml2doc) instead.static LinkedHashMap<Integer,Segment> getIdsVsSegments(Cell cell, NeuroMLDocument nml2doc) static LinkedHashMap<String,SegmentGroup> getNamesVsSegmentGroups(Cell cell) static LinkedHashMap<String,SegmentGroup> getNamesVsSegmentGroups(Cell cell, NeuroMLDocument nml2doc) static SegmentGroupgetSegmentGroup(Cell cell, String id) static LinkedHashMap<SegmentGroup,ArrayList<Integer>> getSegmentGroupsVsSegIds(Cell cell) static LinkedHashMap<SegmentGroup,ArrayList<Integer>> getSegmentGroupsVsSegIds(Cell cell, NeuroMLDocument nml2doc) getSegmentIdsInGroup(LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) getSegmentIdsInGroup(Cell cell, String segmentGroup) getSegmentsInGroup(Cell cell, String segmentGroup) Deprecated.getSegmentsInGroup(Cell cell, LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) getSegmentsInGroup(Cell cell, NeuroMLDocument nml2doc, String segmentGroup) getSegmentsInGroup(Cell cell, NeuroMLDocument nml2doc, LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) static SegmentgetSegmentWithId(Cell cell, int segmentId) Deprecated.static SegmentgetSegmentWithId(Cell cell, NeuroMLDocument nml2doc, int segmentId) static booleanhasSegmentGroup(Cell cell, String segmentGroup) static booleanDeprecated.static booleanhasUnbranchedNonOverlappingInfo(Cell cell, NeuroMLDocument nml2doc) static booleanstatic void
-
Field Details
-
NEUROML2_NEUROLEX_UNBRANCHED_NONOVERLAPPING_SEG_GROUP
-
-
Constructor Details
-
CellUtils
public CellUtils()
-
-
Method Details
-
isUnbranchedNonOverlapping
-
hasUnbranchedNonOverlappingInfo
@Deprecated public static boolean hasUnbranchedNonOverlappingInfo(Cell cell) throws NeuroMLException Deprecated.- Throws:
NeuroMLException
-
hasUnbranchedNonOverlappingInfo
public static boolean hasUnbranchedNonOverlappingInfo(Cell cell, NeuroMLDocument nml2doc) throws NeuroMLException - Throws:
NeuroMLException
-
getCellMorphology
public static Morphology getCellMorphology(Cell cell, NeuroMLDocument nml2doc) throws NeuroMLException - Throws:
NeuroMLException
-
getCellBiophysicalProperties
public static BiophysicalProperties getCellBiophysicalProperties(Cell cell, NeuroMLDocument nml2doc) -
getIdsVsSegments
Deprecated.use getIdsVsSegments(Cell cell, NeuroMLDocument nml2doc) instead. -
getIdsVsSegments
public static LinkedHashMap<Integer,Segment> getIdsVsSegments(Cell cell, NeuroMLDocument nml2doc) throws NeuroMLException - Throws:
NeuroMLException
-
getSegmentGroup
- Throws:
NeuroMLException
-
getSegmentWithId
@Deprecated public static Segment getSegmentWithId(Cell cell, int segmentId) throws NeuroMLException Deprecated.- Throws:
NeuroMLException
-
getSegmentWithId
public static Segment getSegmentWithId(Cell cell, NeuroMLDocument nml2doc, int segmentId) throws NeuroMLException - Throws:
NeuroMLException
-
getNamesVsSegmentGroups
public static LinkedHashMap<String,SegmentGroup> getNamesVsSegmentGroups(Cell cell, NeuroMLDocument nml2doc) throws NeuroMLException - Throws:
NeuroMLException
-
getNamesVsSegmentGroups
public static LinkedHashMap<String,SegmentGroup> getNamesVsSegmentGroups(Cell cell) throws NeuroMLException - Throws:
NeuroMLException
-
getSegmentIdsInGroup
public static ArrayList<Integer> getSegmentIdsInGroup(Cell cell, String segmentGroup) throws NeuroMLException - Throws:
NeuroMLException
-
getSegmentIdsInGroup
public static ArrayList<Integer> getSegmentIdsInGroup(LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) -
hasSegmentGroup
-
getSegmentsInGroup
@Deprecated public static ArrayList<Segment> getSegmentsInGroup(Cell cell, String segmentGroup) throws NeuroMLException Deprecated.- Throws:
NeuroMLException
-
getSegmentsInGroup
public static ArrayList<Segment> getSegmentsInGroup(Cell cell, NeuroMLDocument nml2doc, String segmentGroup) throws NeuroMLException - Throws:
NeuroMLException
-
getSegmentsInGroup
public static ArrayList<Segment> getSegmentsInGroup(Cell cell, LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) throws NeuroMLException- Throws:
NeuroMLException
-
getSegmentsInGroup
public static ArrayList<Segment> getSegmentsInGroup(Cell cell, NeuroMLDocument nml2doc, LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) throws NeuroMLException- Throws:
NeuroMLException
-
getSegmentGroupsVsSegIds
public static LinkedHashMap<SegmentGroup,ArrayList<Integer>> getSegmentGroupsVsSegIds(Cell cell) throws NeuroMLException - Throws:
NeuroMLException
-
getSegmentGroupsVsSegIds
public static LinkedHashMap<SegmentGroup,ArrayList<Integer>> getSegmentGroupsVsSegIds(Cell cell, NeuroMLDocument nml2doc) throws NeuroMLException - Throws:
NeuroMLException
-
distance
-
getFractionAlongSegGroupLength
public static double getFractionAlongSegGroupLength(Cell cell, String segmentGroup, int segmentId, float fractAlongSegment) throws NeuroMLException - Throws:
NeuroMLException
-
getFractionAlongSegGroupLength
public static double getFractionAlongSegGroupLength(Cell cell, NeuroMLDocument nml2doc, String segmentGroup, int segmentId, float fractAlongSegment) throws NeuroMLException - Throws:
NeuroMLException
-
main
- Throws:
Exception
-